How to delete a FAILED VPC Peering Connection Creation?
While creating a VPC peering connection, I gave an invalid VPC id and the peering connection creation failed. Later I corrected the VPC id and could create the peering connection. Now I am trying to delete the failed peering connection, but the option is greyed out in AWS dashboard.
CLI is not letting me to delete it. How do I delete a failed VPC peering connection?
$ aws ec2 delete-vpc-peering-connection --vpc-peering-connection-id pcx-xxxxxxxx An error occurred (InvalidStateTransition) when calling the DeleteVpcPeeringConnection operation: Invalid state transition for pcx-xxxxxxxx, attempted to transition from failed to deleting 