EC2-CREATE-SUBNET(1)
π EC2-CREATE-SUBNET π
okay bestie, welcome to the ec2-create-subnet manual page, part of the User Commands collection β yes it's a real manpage, yes it's about carving out lil subnets inside your VPC, and yes I'm gonna walk you through every single flag because I love you and I refuse to let you guess π«Ά
β¨ NAME β¨
ec2-create-subnet β create a subnet in an existing VPC π¦
β¨ SYNOPSIS β¨
ec2addsubnet ([ec2-create-subnet])
ec2addsubnet [GENERAL OPTIONS] -c VPC -i CIDR -z ZONE
so there's the alias ec2addsubnet doing the same job, and then the real-deal invocation with your general options plus the three things you literally cannot skip: the VPC, the CIDR, and the zone. slay π
β¨ GENERAL NOTES β¨
okay this one's important and it's kind of iconic ngl:
- Any command option/parameter may be passed a value of
-to indicate that values for that option should be read from stdin.
that's it, that's the note. go off, pipe things in π
β¨ DESCRIPTION β¨
So here's the vibe: ec2-create-subnet creates a subnet in an existing VPC. β¨
And if you add more than one subnet to a VPC, they're set up in a star topology with a router in the middle. lowkey elegant, highkey important.
The subnet's CIDR block can be the same as the VPC's CIDR block, or a subset of the VPC's CIDR block. your call, bestie π
β¨ GENERAL OPTIONS β¨
these are the options that apply across the whole command-line-tools family, so learn them once and you're set for life fr fr
-O,--aws-access-keyKEY β your AWS Access Key ID. defaults to whatever theAWS_ACCESS_KEYenvironment variable is set to (if it's set at all π).-W,--aws-secret-keyKEY β your AWS Secret Access Key. defaults to the value of theAWS_SECRET_KEYenvironment variable (if set). keep this one secret secret, no cap π-T,--security-tokenTOKEN β AWS delegation token. defaults to the value of theAWS_DELEGATION_TOKENenvironment variable (if set).-K,--private-keyKEY β [DEPRECATED] specify KEY as the private key to use. defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if set). overrides the default. it's giving legacy, bestie π-C,--certCERT β [DEPRECATED] specify CERT as the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if set). overrides the default. also giving legacy π-U,--urlURL β specify URL as the web service URL to use. defaults to the value of'https://ec2.amazonaws.com'(us-east-1) or to that of theEC2_URLenvironment variable (if set). overrides the default.--regionREGION β specify REGION as the web service region to use. β οΈ this option will override the URL specified by the-U URLoption and theEC2_URLenvironment variable. it defaults to the region specified by theEC2_URLenvironment variable, orus-east-1if that environment variable is not set. so yeah, it's got main character energy and it wins every argument π-D,--auth-dry-runβ check if you can perform the requested action rather than actually performing it. vibe check before the vibe happens π-v,--verboseβ verbose output. give me ALL the lore.-?,--helpβ display this help.-H,--headersβ display column headers. labels on labels β¨--debugβ display additional debugging information.--show-empty-fieldsβ indicate empty fields.--hide-tagsβ do not display tags for tagged resources. bye tags π«Ά--connection-timeoutTIMEOUT β specify a connection timeout TIMEOUT (in seconds).--request-timeoutTIMEOUT β specify a request timeout TIMEOUT (in seconds).
β¨ SPECIFIC OPTIONS β¨
these are the ones that actually build your subnet, the three icons of the show π
-c,--vpcVPC β the ID of the VPC where you want to create the subnet. this is the neighborhood, bestie π‘-i,--cidrCIDR β the CIDR block you want the subnet to cover.-z,--availability-zoneZONE β the availability zone you want the subnet in. pick your lil corner of the planet π
β¨ SEE ALSO β¨
go read the docs, they're right here, no gatekeeping:
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
okay that's the whole page, every flag, every default, every deprecated lil guy, every URL. nothing skipped, nothing invented. periodt π
that was EC2-CREATE-SUBNET(1) from the EC2 API command line tools, version 1.6.14.1, api=2014-05-01. π¦β¨ go make some subnets, bestie, you're literally the main character of your own VPC ππ
π¦ 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