| Did this page help you? Yes No Tell us about it... |
Disassociates an Elastic IP address from the instance or network interface it's assigned to.
This action applies to both EC2 Elastic IP addresses and VPC Elastic IP addresses. For information about VPC addresses and how they differ from EC2 addresses, go to Elastic IP Addresses in the Amazon Virtual Private Cloud User Guide.
This is an idempotent action. If you enter it more than once, Amazon EC2 does not return an error.
The short version of this command is ec2disaddr.
ec2-disassociate-address {
ip_address | -a
association_id}
| Name | Description | Required |
|---|---|---|
|
|
EC2 Elastic IP address you want to disassociate. Type: String Default: None Condition: Required for EC2 Elastic IP addresses. Example: 192.0.2.1 |
Conditional |
|
|
Association ID corresponding to the VPC Elastic IP address you want to disassociate. Type: String Default: None Condition: Required for VPC Elastic IP addresses. Example: -a eipassoc-fc5ca095 |
Conditional |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
Output type identifier ("ADDRESS")
Elastic IP address you are disassociating from the instance
Amazon EC2 command line tools display errors on stderr.
This example disassociates the EC2 Elastic IP address (192.0.2.1) from the instance it's assigned to.
PROMPT>ec2-disassociate-address 192.0.2.1ADDRESS 192.0.2.1
This example disassociates the VPC Elastic IP address with association ID eipassoc-048c746d from the instance it's assigned to.
PROMPT>ec2-disassociate-address -a eipassoc-048c746dADDRESS eipassoc-048c746d