ec2-describe-addresses
Description
Lists elastic IP addresses assigned to your account or provides information about a specific address.
Syntax
ec2-describe-addresses [public_ip ...]
Options
Name | Description | Required |
---|---|---|
|
Elastic IP address to describe. Type: String Default: None Example: 67.202.55.255 |
No |
Output
The command returns a table that contains the following information:
-
Output type identifier ("ADDRESS")
-
Elastic IP address assigned to your account
-
Instance ID to which the IP address is assigned
Amazon EC2 displays errors on stderr.
Examples
Example Request
This example describes elastic IP addresses assigned to the account. Amazon EC2 returns 67.202.55.255 which is assigned to instance i-f15ebb98 and 67.202.55.233 which is not assigned to an instance.
PROMPT>ec2-describe-addresses
ADDRESS 67.202.55.255 i-f15ebb98
ADDRESS 67.202.55.233