EC2-CREATE-ROUTE(1)
โจ EC2-CREATE-ROUTE(1) โจ
okay bestie, gather round ๐ซถ this is ec2-create-route, a User Commands page from the EC2 API command line tools, and it's literally about making a route show up in a route table. no cap. it's giving "networking but make it a group project" ๐
NAME ๐
ec2-create-route โ creates a route in a given route table. that's it, that's the whole job. iconic behavior honestly.
SYNOPSIS ๐ธ
ec2addrt ([ec2-create-route])
ec2addrt [GENERAL OPTIONS] ROUTE_TABLE -r CIDR { -g GATEWAY | -i INSTANCE | -n NETWORK_INTERFACE | -p VPC_PEERING_CONNECTION }
so yeah, ec2addrt is the little nickname it goes by, and you're gonna hand it a ROUTE_TABLE, a -r CIDR, and then exactly one of those four destination-ish flags in the curly braces. one. not two. not zero. one. ๐
GENERAL NOTES ๐ฆ
- literally any command option or parameter can be handed a value of
-and that means "bestie, read the value for this fromstdininstead" ๐
DESCRIPTION ๐
creates a route in a given route table. that's the vibe. โจ
ROUTE_TABLE is the ID of the route table you're adding a route to. yes it's positional, yes it comes before your flags, no we don't make the rules (we do, actually, it's in the synopsis).
GENERAL OPTIONS ๐
the universal ones. these apply to basically everything, not just this command. main character options fr fr.
-O,--aws-access-key KEYโ your AWS Access Key ID. defaults to whateverAWS_ACCESS_KEYis set to in the environment (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). ๐คซ-T,--security-token TOKENโ the 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). overrides the default. โ ๏ธ like, it still works, but it's deprecated, so maybe don't build your whole personality around it.-C,--cert CERTโ [DEPRECATED] specifyCERTas the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if set). overrides the default. โ ๏ธ also deprecated. same energy.-U,--url URLโ specifyURLas the web service URL to use. defaults tohttps://ec2.amazonaws.com(that's us-east-1) or to whateverEC2_URLis set to (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. it defaults to the region specified by theEC2_URLenvironment variable, orus-east-1if that environment variable isn't set. ๐-D,--auth-dry-runโ check if you can do the thing instead of actually doing the thing. window shopping for permissions, lowkey. ๐๏ธ-v,--verboseโ verbose output. it talks more. ๐ฃ๏ธ-?,--helpโ display this help. your emotional support flag. ๐ซถ-H,--headersโ display column headers. ๐--debugโ display additional debugging information. for when you're going through it. ๐--show-empty-fieldsโ indicate empty fields. so the blanks don't ghost you. ๐ป--hide-tagsโ do not display tags for tagged resources. ๐ท๏ธโ--connection-timeout TIMEOUTโ specify a connection timeoutTIMEOUT, in seconds. โฑ๏ธ--request-timeout TIMEOUTโ specify a request timeoutTIMEOUT, in seconds. โณ
SPECIFIC OPTIONS ๐
these are the ones that actually make this command this command. the specialest little guys.
-g,--gateway GATEWAYโ the gateway associated with the route. you must specify this, or-i/--instance, or-n/--network, or-p/--vpc-peering-connection. ๐ช-i,--instance INSTANCEโ the instance associated with the route. you must specify this, or-g/--gateway, or-n/--network, or-p/--vpc-peering-connection. ๐ป-n,--network-interface NETWORKINTERFACEโ the network interface associated with the route. you must specify this, or-i/--instance, or-g/--gateway, or-p/--vpc-peering-connection. ๐-p,--vpc-peering-connection VPC_PEERING_CONNECTIONโ the VPC Peering Connection associated with the route. you must specify this, or-i/--instance, or-n/--network, or-g/--gateway. ๐ค-r,--cidr CIDRโ the IP range to be routed. the whole point tbh. ๐ฎ
ngl, the "must specify this, orโฆ" energy on all four of those is the tool's way of saying pick exactly one target, bestie. it's not a suggestion, it's the rules. ๐จ
SEE ALSO ๐
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
go read the docs, they're long but they're giving โจcanonโจ
and that's the whole page, bestie ๐ง๐ sending you off with the receipts: this is from the EC2 API command line tools, version 1.6.14.1, api=2014-05-01, and the page date matches that whole 2014-05-01 situation. slay, go route something responsibly. periodt. ๐
๐ฅ
๐ฆ 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