EC2-DELETE-SUBNET(1)
π
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 theAWS_ACCESS_KEYenvironment variable is holding (if it's set at all). π-W,--aws-secret-key KEYβ your AWS Secret Access Key. defaults to the value of theAWS_SECRET_KEYenvironment variable (if set). keep this one secret-secret, okay? π€«-T,--security-token TOKENβ AWS delegation token. defaults to the value of theAWS_DELEGATION_TOKENenvironment variable (if set). ποΈ-K,--private-key KEYβ [DEPRECATED] specifyKEYas the private key to use. defaults to the value of theEC2_PRIVATE_KEYenvironment 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] specifyCERTas the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if set), and it overrides the default. also deprecated. also still here. the audacity π-U,--url URLβ specifyURLas the web service URL to use. defaults tohttps://ec2.amazonaws.com(that's us-east-1) or to the value of theEC2_URLenvironment variable (if set). overrides the default. β¨--region REGIONβ specifyREGIONas the web service region to use. this option will override the URL specified by the-U URLoption and theEC2_URLenvironment variable. she takes priority, she's that girl π. this option defaults to the region specified by theEC2_URLenvironment variable, orus-east-1if 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 timeoutTIMEOUT(in seconds). β³--request-timeout TIMEOUTβ specify a request timeoutTIMEOUT(in seconds). β°
π SEE ALSO π
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
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
- ubuntu jammy: ec2-api-tools 1.6.14.1-0ubuntu1
- ubuntu noble: ec2-api-tools 1.6.14.1-0ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms