Download EC2 User Guide for Linux - Documentation

Transcript
Amazon Elastic Compute Cloud User Guide for Linux
Instances
Working with Elastic IP Addresses
• associate-address (AWS CLI)
• ec2-associate-address (Amazon EC2 CLI)
• Register-EC2Address (AWS Tools for Windows PowerShell)
Moving an Elastic IP Address
Currently, you can migrate an Elastic IP address to EC2-VPC or restore it to EC2-Classic using the
Amazon EC2 Query API, an AWS SDK, or the AWS CLI only.
After you've performed the command to move or restore your Elastic IP address, the process of migrating
the Elastic IP address can take a few minutes. Use the describe-moving-addresses command to check
whether your Elastic IP address is still moving, or has completed moving.
If the Elastic IP address is in a moving state for longer than 5 minutes, contact
http://aws.amazon.com/premiumsupport/.
To move an Elastic IP address using the Amazon EC2 Query API or AWS CLI
You can use one of the following commands. For more information about these command line interfaces,
see Accessing Amazon EC2 (p. 3).
• move-address-to-vpc (AWS CLI)
• MoveAddressToVpc (Amazon EC2 Query API)
• Move-EC2AddressToVpc (AWS Tools for Windows PowerShell)
To restore an Elastic IP address to EC2-Classic using the Amazon EC2 Query API or AWS
CLI
You can use one of the following commands. For more information about these command line interfaces,
see Accessing Amazon EC2 (p. 3).
• restore-address-to-classic (AWS CLI)
• RestoreAddressToClassic (Amazon EC2 Query API)
• Restore-EC2AddressToClassic (AWS Tools for Windows PowerShell)
To describe the status of your moving addresses using the Amazon EC2 Query API or
AWS CLI
You can use one of the following commands. For more information about these command line interfaces,
see Accessing Amazon EC2 (p. 3).
• describe-moving-addresses (AWS CLI)
• DescribeMovingAddresses (Amazon EC2 Query API)
• Get-EC2Address (AWS Tools for Windows PowerShell)
To retrieve the allocation ID for your migrated Elastic IP address in EC2-VPC
You can use one of the following commands. For more information about these command line interfaces,
see Accessing Amazon EC2 (p. 3).
• describe-addresses (AWS CLI)
• DescribeAddresses (Amazon EC2 Query API)
• Get-EC2Address (AWS Tools for Windows PowerShell)
531