EC2-CREATE-ROUTE(1)

๐Ÿ“ฆ version 1.6.14.1, in ubuntu jammy, ubuntu noble

โœจ 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 from stdin instead" ๐Ÿ“

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 whatever AWS_ACCESS_KEY is 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 the AWS_SECRET_KEY environment variable (if set). ๐Ÿคซ
  • -T, --security-token TOKEN โ€” the 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. โš ๏ธ like, it still works, but it's deprecated, so maybe don't build your whole personality around it.
  • -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 deprecated. same energy.
  • -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 whatever EC2_URL is set to (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 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 timeout TIMEOUT, in seconds. โฑ๏ธ
  • --request-timeout TIMEOUT โ€” specify a request timeout TIMEOUT, 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 ๐Ÿ”—

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