Name
ec2-associate-address
Synopsis
ec2-associate-address -i instanceid ipaddress
Associates an address obtained through ec2-allocate-address
with a running EC2
instance. This command will also disassociate the IP address with
any current associations it might have. It is therefore important
you not accidentally use this method to reassign an IP unless you
intend the reassignment.
Example
$ ec2-associate-address -i i-12b3ff6a 67.202.55.255
ADDRESS 67.202.55.255 i-12b3ff6a
Get Cloud Application Architectures now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.