EC2-ASSIGN-P...-IP-ADDRESSES(1)

πŸ“¦ version 1.6.14.1, in ubuntu jammy, ubuntu noble

πŸ’– 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 the AWS_ACCESS_KEY environment variable says (if it's set, that is).
  • -W, --aws-secret-key KEY β€” your AWS Secret Access Key. defaults to the value of the AWS_SECRET_KEY environment variable (if set).
  • -T, --security-token TOKEN β€” your AWS delegation token. defaults to the value of the AWS_DELEGATION_TOKEN environment variable (if set).
  • -K, --private-key KEY β€” [DEPRECATED] ngl bestie, this one's old news. specify KEY as the private key to use. defaults to the value of the EC2_PRIVATE_KEY environment variable (if set), and it overrides the default.
  • -C, --cert CERT β€” [DEPRECATED] also deprecated, we don't gatekeep. specify CERT as the X509 certificate to use. defaults to the value of the EC2_CERT environment variable (if set), and it overrides the default.
  • -U, --url URL β€” specify URL as the web service URL to use. defaults to 'https://ec2.amazonaws.com' (that's us-east-1 🌈) or to the value of the EC2_URL environment variable (if set). overrides the default.
  • --region REGION β€” specify REGION as the web service region to use. heads up: this option will override the URL you set with the "-U URL" option AND the EC2_URL environment variable. it defaults to the region from the EC2_URL environment variable, or us-east-1 if 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 timeout TIMEOUT (in seconds).
  • --request-timeout TIMEOUT β€” specify a request timeout TIMEOUT (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 🌈


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