EC2-DELETE-SUBNET(1)

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

πŸ’… EC2-DELETE-SUBNET(1) β€” the ec2-delete-subnet era

okay bestie, so this is a page from the EC2 API command line tools manual, and it's literally all about yeeting a subnet out of existence. welcome to ec2-delete-subnet(1), pull up a chair 🫢


✨ NAME ✨

ec2-delete-subnet β€” Delete a subnet from a VPC

no cap, that's the whole vibe. it deletes a subnet. from a VPC. that's the job. πŸŽ€


🌸 SYNOPSIS 🌸

ec2delsubnet ([ec2-delete-subnet])
ec2delsubnet [GENERAL OPTIONS] SUBNET

so you can call it as ec2delsubnet with an optional ([ec2-delete-subnet]) in there, or you go full send with [GENERAL OPTIONS] SUBNET. either way, she's serving. πŸ‘‘


πŸ’– GENERAL NOTES πŸ’–

any command option or parameter can be handed a value of - and that's the signal that the values for that option should be read from stdin. yes really. - is the "read it from stdin bestie" token. iconic behaviour fr fr πŸ’€


πŸ¦‹ DESCRIPTION πŸ¦‹

Deletes a subnet from a VPC.

⚠️ you MUST terminate all running instances in the subnet before deleting it. like, all of them. no stragglers. the subnet will not go quietly if something's still living in it, bestie 😭

The SUBNET parameter is the ID of the subnet you want to delete. that's the main character argument right there β€” give her the ID and she's gone. periodt.


🌈 GENERAL OPTIONS 🌈

  • -O, --aws-access-key KEY β€” your AWS Access Key ID. defaults to whatever the AWS_ACCESS_KEY environment variable is holding (if it's set at all). πŸ”‘
  • -W, --aws-secret-key KEY β€” your AWS Secret Access Key. defaults to the value of the AWS_SECRET_KEY environment variable (if set). keep this one secret-secret, okay? 🀫
  • -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), and it overrides the default. like, she's old-school, she's deprecated, but she's still here πŸ’€
  • -C, --cert CERT β€” [DEPRECATED] specify CERT as the X509 certificate to use. defaults to the value of the EC2_CERT environment variable (if set), and it overrides the default. also deprecated. also still here. the audacity πŸ™ˆ
  • -U, --url URL β€” specify URL as the web service URL to use. defaults to https://ec2.amazonaws.com (that's 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 the EC2_URL environment variable. she takes priority, she's that girl πŸ‘‘. this option defaults to the region specified by the EC2_URL environment variable, or us-east-1 if that environment variable is not set. 🌍
  • -D, --auth-dry-run β€” check if you can actually perform the requested action instead of, y'know, actually performing it. a little vibe check before the real thing, we love a safe queen 🧚
  • -v, --verbose β€” verbose output. she talks more. we listen. πŸ’¬
  • -?, --help β€” display this help. your emergency bestie. πŸ†˜
  • -H, --headers β€” display column headers. labels on the columns, so you know what you're looking at. 🏷️
  • --debug β€” display additional debugging information. for when you need the whole lore. πŸ”
  • --show-empty-fields β€” indicate empty fields. so the empty ones don't just ghost you. πŸ‘»
  • --hide-tags β€” do not display tags for tagged resources. hide the tags, keep the mystery. πŸŽ€
  • --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 if you want the extended cut, iykyk πŸ“š


and that's the whole page, bestie πŸ’œ this one's from the EC2 API command line tools, version 1.6.14.1, with api=2014-05-01 β€” the EC2-DELETE-SUBNET(1) of it all. slay, stay terminated (the instances, not you), and go delete that subnet πŸ¦‹βœ¨πŸ’…

πŸ“¦ where this page comes from