aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

add --all-dependencies option to ec2 delete-vpc

Open meonkeys opened this issue 10 years ago • 72 comments

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.

  1. Subnets
  2. Security Groups
  3. Network ACLs
  4. VPN Attachments
  5. Internet Gateways
  6. Route Tables
  7. Network Interfaces
  8. VPC Peering Connections

Maybe also add --vpn-connection.

meonkeys avatar Jan 13 '16 04:01 meonkeys

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.

JordonPhillips avatar Jan 13 '16 23:01 JordonPhillips

Good call. Done: https://forums.aws.amazon.com/thread.jspa?threadID=223412

meonkeys avatar Jan 14 '16 22:01 meonkeys

I am in need for this feature, also. :+1: from me

jrozansk avatar Feb 15 '16 14:02 jrozansk

@JordonPhillips is not it all about just listing dependencies and removing them one by one, or is it something more than that?

bzz avatar Sep 22 '16 14:09 bzz

+1 Is there any progress with this feature?

ghost avatar Feb 20 '17 11:02 ghost

+1 frome me

lianghong avatar Mar 08 '17 07:03 lianghong

A definite +1

samfrances avatar Mar 16 '17 09:03 samfrances

+1

erickfaustino avatar Apr 13 '17 20:04 erickfaustino

+1 I have bunches of vpc's to be deleted.

stormyk avatar May 02 '17 17:05 stormyk

+1

setevoy2 avatar May 03 '17 14:05 setevoy2

+1

nicksuckling avatar May 11 '17 12:05 nicksuckling

+1

ale93p avatar May 11 '17 13:05 ale93p

:+1:

joejulian avatar May 19 '17 17:05 joejulian

+1

oyyblin avatar Jun 29 '17 18:06 oyyblin

+1

apsferreira avatar Jul 13 '17 10:07 apsferreira

+1

seancurran157 avatar Jul 15 '17 12:07 seancurran157

+1000

chankongching avatar Jul 17 '17 11:07 chankongching

+1

snowsky avatar Jul 24 '17 15:07 snowsky

+1

cwitte4191 avatar Aug 02 '17 19:08 cwitte4191

+1

taylorsmithgg avatar Aug 17 '17 21:08 taylorsmithgg