add --all-dependencies option to ec2 delete-vpc
Feature request
support aws ec2 delete-vpc --all-dependencies --vpc-id vpc-deadbeef
Details
The AWS web console will delete a VPC along with all its dependencies. The aws cli tool says (when trying to delete a VPC with any dependencies): A client error (DependencyViolation) occurred when calling the DeleteVpc operation: The vpc 'vpc-deadbeef' has dependencies and cannot be deleted.
- Subnets
- Security Groups
- Network ACLs
- VPN Attachments
- Internet Gateways
- Route Tables
- Network Interfaces
- VPC Peering Connections
Maybe also add --vpn-connection.
Something like this might be handy, but it requires more magic smoke than I'm really comfortable with. I would suggest making this request on the EC2 forums. If they add it to their API, we'll be able to pick it up immediately.
Good call. Done: https://forums.aws.amazon.com/thread.jspa?threadID=223412
I am in need for this feature, also. :+1: from me
@JordonPhillips is not it all about just listing dependencies and removing them one by one, or is it something more than that?
+1 Is there any progress with this feature?
+1 frome me
A definite +1
+1
+1 I have bunches of vpc's to be deleted.
+1
+1
+1
:+1:
+1
+1
+1
+1000
+1
+1
+1