EC2-DELETE-VPC(1)

πŸ“¦ version 1.6.14.1, in ubuntu jammy, ubuntu noble

πŸ’– EC2-DELETE-VPC(1) β€” bestie's guide to yeeting a VPC πŸ’–

okay so real talk, this page is from the ec2-delete-vpc manual (that's the tool, the man page name is EC2-DELETE-VPC(1)) and it's literally just "how do I delete a VPC" and honestly? iconic. let's get into it πŸ¦‹


✨ NAME ✨

ec2-delete-vpc β€” Delete a VPC πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

 ec2delvpc ([ec2-delete-vpc])
 ec2delvpc [GENERAL OPTIONS] VPC

🌸 GENERAL NOTES 🌸

ok so the big brain move here: any command option or parameter can be handed a value of - and that means "bestie, read the values for this option from stdin instead" πŸ’Œ


πŸ¦‹ DESCRIPTION πŸ¦‹

Deletes a VPC. periodt. πŸ’€

but WAIT. before you go feral on that delete button, you must terminate all running instances and delete all subnets before deleting the VPC. it's giving "you can't break up with the VPC until you've moved all your stuff out" 😭 no skipping steps fr fr.


πŸ‘‘ GENERAL OPTIONS πŸ‘‘

  • -O, --aws-access-key KEY β€” your AWS Access Key ID. Defaults to whatever AWS_ACCESS_KEY environment variable says (if it's set). πŸ”‘
  • -W, --aws-secret-key KEY β€” your AWS Secret Access Key. Defaults to the value of the AWS_SECRET_KEY environment variable (if set). 🀫
  • -T, --security-token TOKEN β€” AWS delegation token. Defaults to the value of the AWS_DELEGATION_TOKEN environment variable (if set). 🎫
  • -K, --private-key KEY β€” [DEPRECATED] Specify KEY as the private key to use. Defaults to the value of the EC2_PRIVATE_KEY environment variable (if set). Overrides the default. ⚠️ yes bestie it literally says deprecated, tread carefully
  • -C, --cert CERT β€” [DEPRECATED] Specify CERT as the X509 certificate to use. Defaults to the value of the EC2_CERT environment variable (if set). Overrides the default. πŸ“œ also deprecated, we love a legacy moment
  • -U, --url URL β€” Specify URL as the web service URL to use. Defaults to 'https://ec2.amazonaws.com' (us-east-1) or to the value of the EC2_URL environment variable (if set). Overrides the default. 🌐
  • --region REGION β€” Specify REGION as the web service region to use. This option will override the URL specified by the "-U URL" option and EC2_URL environment variable. This option defaults to the region specified by the EC2_URL environment variable or us-east-1 if this environment variable is not set. πŸ—ΊοΈ lowkey it's the boss of -U, keep that in mind
  • -D, --auth-dry-run β€” Check if you can perform the requested action rather than actually performing it. πŸ§ͺ vibe check before the real thing, no cap
  • -v, --verbose β€” Verbose output. πŸ—£οΈ
  • -?, --help β€” Display this help. 🫢
  • -H, --headers β€” Display column headers. πŸ“‹
  • --debug β€” Display additional debugging information. πŸ›
  • --show-empty-fields β€” Indicate empty fields. πŸ•³οΈ
  • --hide-tags β€” Do not display tags for tagged resources. πŸ™ˆ
  • --connection-timeout TIMEOUT β€” Specify a connection timeout TIMEOUT (in seconds). ⏱️
  • --request-timeout TIMEOUT β€” Specify a request timeout TIMEOUT (in seconds). βŒ›

🌈 SEE ALSO 🌈

go read the docs bestie, they're right there πŸ’œ


heads up: -K and -C are marked [DEPRECATED] in the original and I'm not gonna pretend otherwise, so if you're reaching for those, maybe don't βœ‹πŸ˜­

and that's the whole page!! this was EC2 API command line tools, version 1.6.14.1, api 2014-05-01, and it's the EC2-DELETE-VPC(1) manual. slay, go delete that VPC (after terminating your instances and deleting your subnets, obviously) πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from