Deleting a VPC Peering Connection
You can delete a VPC peering connection to disable communication between two peered Virtual Private Clouds (VPCs).
Permission to delete the connection depends on the state of the connection:
-
If the connection is in the
active
state, it can be deleted either by the owner of the requester VPC or the owner of the peer VPC. -
If it is in the
pending-acceptance
state, it can be deleted only by the owner of the requester VPC. -
It if is in the
rejected
,failed
, orexpired
states, it cannot be deleted.
For more information, see About VPC Peering Connections > Lifecycle.
Deleting a VPC Peering Connection Using Cockpit v1
-
Click VPC > VPC Peering Connections.
-
Select the VPC peering connection you want to delete.
Multiselection is available.
The VPC peering connection is selected.
-
Click Delete .
A confirmation dialog box appears. -
Click Delete to validate.
The VPC peering connection is deleted.Deleted resources remain visible for 1 hour.
Deleting a Net Peering Using OSC CLI
See the DeleteNetPeering command sample in the documentation of the OUTSCALE API. |
Deleting a VPC Peering Connection Using AWS CLI
To delete a VPC peering connection, use the delete-vpc-peering-connection command following this syntax:
$ aws ec2 delete-vpc-peering-connection \
--profile YOUR_PROFILE \
--vpc-peering-connection-id pcx-111aaa11 \
--endpoint https://fcu.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
vpc-peering-connection-id
: The ID of the VPC peering connection you want to delete. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The specified VPC peering connection is deleted.
Deleted resources remain visible for 1 hour. |
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.