EC2-ASSIGN-P...-IP-ADDRESSES(1)
π EC2-ASSIGN-P...-IP-ADDRESSES(1) π
okay so bestie, welcome to ec2-assign-private-ip-addresses β it's a User Commands situation from the EC2 API command line tools, and it's literally here to assign secondary private IP addresses to the specified network. she's giving network admin main character energy and honestly? obsessed. π¦
β¨ NAME β¨
ec2-assign-private-ip-addresses β Assign secondary private IP addresses to the specified network π«Ά
πΈ SYNOPSIS πΈ
ec2apip ([ec2-assign-private-ip-addresses])
ec2apip [GENERAL OPTIONS] -n NETWORK_INTERFACE_ID
(--secondary-private-ip-address-count SECONDARY_PRIVATE ADDRESS_COUNT |
--secondary-private-ip-address SECONDARY_PRIVATE_IP_ADDRESS
[--secondary-private-ip-address SECONDARY_PRIVATE_IP_ADDRESS ...])
π GENERAL NOTES π
so like, here's the tea: any command option or parameter can be handed a value of -, and that means "hey, read the values for this option from stdin instead." very demure, very flexible. π
π DESCRIPTION π
Assign secondary private IP addresses to the specified network interface, bestie. β¨
and you've got two whole vibes for how to do it: you can add the private IP addresses individually, one by one, like a lil collector π β OR you can just specify the number of them you want added and let it cook. either way, slay.
π GENERAL OPTIONS π
-O,--aws-access-key KEYβ your AWS Access Key ID. defaults to whatever theAWS_ACCESS_KEYenvironment variable says (if it's set, that is).-W,--aws-secret-key KEYβ your AWS Secret Access Key. defaults to the value of theAWS_SECRET_KEYenvironment variable (if set).-T,--security-token TOKENβ your AWS delegation token. defaults to the value of theAWS_DELEGATION_TOKENenvironment variable (if set).-K,--private-key KEYβ [DEPRECATED] ngl bestie, this one's old news. specifyKEYas the private key to use. defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if set), and it overrides the default.-C,--cert CERTβ [DEPRECATED] also deprecated, we don't gatekeep. specifyCERTas the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if set), and it overrides the default.-U,--url URLβ specifyURLas the web service URL to use. defaults to'https://ec2.amazonaws.com'(that's us-east-1 π) or to the value of theEC2_URLenvironment variable (if set). overrides the default.--region REGIONβ specifyREGIONas the web service region to use. heads up: this option will override the URL you set with the"-U URL"option AND theEC2_URLenvironment variable. it defaults to the region from theEC2_URLenvironment variable, orus-east-1if that env var isn't set. periodt. π-D,--auth-dry-runβ check whether you could do the thing, instead of actually doing the thing. a little peek, no commitment. π-v,--verboseβ verbose output, aka she tells you everything.-?,--helpβ display this help. your lil safety net π«Ά-H,--headersβ display column headers. we love a labeled moment.--debugβ display additional debugging information. for when you're deep in the trenches fr fr π--show-empty-fieldsβ indicate empty fields. no mysterious blanks on her watch β¨--hide-tagsβ do not display tags for tagged resources. shy girl behavior.--connection-timeout TIMEOUTβ specify a connection timeoutTIMEOUT(in seconds).--request-timeout TIMEOUTβ specify a request timeoutTIMEOUT(in seconds).
π¦ SPECIFIC OPTIONS π¦
-n,--network-interface NETWORKINTERFACEβ the ID of the network interface that the specified addresses will be assigned to. yes, there's a lil space before that period in the original and we're keeping it, it's part of the lore π--secondary-private-ip-address-count SECONDARY-PRIVATE-ADDRESS-COUNTβ the number of secondary private IP addresses to be automatically assigned to the network interface. just tell her how many, she'll handle it.--secondary-private-ip-address SECONDARY-PRIVATE-IP-ADDRESSβ the secondary private IP address to assign to the network interface. one at a time, as many as you want πΈ--allow-reassignmentβ specify whether IP addresses can be reassigned if they're already assigned to a different network interface in the same subnet. it's giving "sharing is caring" but like, with subnets.
π SEE ALSO π
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
and that's the whole page, bestie!! ππβ¨ this masterpiece is brought to you by the EC2 API command line tools, version 1.6.14.1, api=2014-05. go assign those addresses, you absolute icon. iykyk. ππ¦π
π¦ where this page comes from
- ubuntu jammy: ec2-api-tools 1.6.14.1-0ubuntu1
- ubuntu noble: ec2-api-tools 1.6.14.1-0ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms