EC2-CREATE-SUBNET(1)

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

πŸ’– 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-key KEY β€” your AWS Access Key ID. defaults to whatever the AWS_ACCESS_KEY environment variable is set to (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, no cap πŸ”’
  • -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. it's giving legacy, bestie πŸ’€
  • -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 giving legacy πŸ™ˆ
  • -U, --url URL β€” 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 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. it defaults to the region specified by the EC2_URL environment variable, or us-east-1 if 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-timeout TIMEOUT β€” specify a connection timeout TIMEOUT (in seconds).
  • --request-timeout TIMEOUT β€” 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, --vpc VPC β€” the ID of the VPC where you want to create the subnet. this is the neighborhood, bestie 🏑
  • -i, --cidr CIDR β€” the CIDR block you want the subnet to cover.
  • -z, --availability-zone ZONE β€” 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:


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