EC2-REPLACE-ROUTE(1)

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

πŸ’– EC2-REPLACE-ROUTE πŸ’–

okay bestie, welcome to the manual page for ec2-replace-route β€” a User Commands classic, living in section 1 of your man pages. it's giving "i have one job and i do it", and honestly? iconic.


✨ NAME ✨

ec2-replace-route β€” Replaces a route in a given route table

no cap, that's literally the whole personality. it replaces a route. in a route table. slay.


πŸŽ€ SYNOPSIS πŸŽ€

 ec2reprt ([ec2-replace-route])
 ec2reprt [GENERAL OPTIONS] ROUTE_TABLE -r CIDR { -g GATEWAY | -i
INSTANCE | -n NETWORK_INTERFACE | -p VPC_PEERING_CONNECTION }

so like, you got the cute little ec2reprt shorthand alias, and then the full invocation. you give it a ROUTE_TABLE, you give it -r CIDR, and then you pick exactly one of those four target vibes in the curly braces. one. not two. one. πŸ’…


🫢 GENERAL NOTES 🫢

Any command option/parameter may be passed a value of - to indicate that values for that option should be read from stdin.

fr fr, that's the "i'm too cool to type my secrets out loud, pipe them in instead" feature. love that for us.


🌸 DESCRIPTION 🌸

Replaces a route in a given route table.

ROUTE_TABLE is the ID of the route table in which to replace a route.

that's it. that's the whole thing. it's not complicated, bestie, it just wants the route table ID so it knows where to do the replacing. ✨


πŸ’œ GENERAL OPTIONS πŸ’œ

  • -O, --aws-access-key KEY β€” AWS Access Key ID. Defaults to the value of the AWS_ACCESS_KEY environment variable (if set).
  • -W, --aws-secret-key KEY β€” AWS Secret Access Key. Defaults to the value of the AWS_SECRET_KEY environment variable (if set).
  • -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.
bestie this one is deprecated 😭 it still works but it's giving "2014 called and wants its auth back". also lowkey the original formatting is a little unhinged here β€” the "Overrides the default." line is what it says, so we're keeping it, periodt.
  • -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. we stan a legacy option but we don't use a legacy option.
  • -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 EC2_URL environment variable. This option defaults to the region specified by the EC2_URL environment variable or us-east-1 if this environment variable is not set.
the way that --region just casually steamrolls over -U and EC2_URL?? main character energy fr. it's the boss of the URL situation, iykyk.
  • -D, --auth-dry-run β€” Check if you can perform the requested action rather than actually performing it.
the "let me just see if this works" button. no commitment, all vibes. πŸ¦‹
  • -v, --verbose β€” Verbose output.
  • -?, --help β€” Display this help.
  • -H, --headers β€” Display column headers.
  • --debug β€” Display additional debugging information.
  • --show-empty-fields β€” Indicate empty fields.
  • --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 πŸ‘‘

okay so this is the part where you pick your ONE route target. exactly one of these four, bestie. not zero, not two. choose wisely. πŸŽ€

  • -g, --gateway GATEWAY β€” The gateway associated with the route. Must specify this, or -i/--instance, or -n/--network, or -p/--vpc-peering-connection.
  • -i, --instance INSTANCE β€” The instance associated with the route. 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. 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. Must specify this, or -i/--instance, or -n/--network, or -g/--gateway.
  • -r, --cidr CIDR β€” The IP range to be routed.
notice how each of those four is like "you MUST pick me, or one of my three besties"?? mutual requirement chain, we love to see it. but again: only ONE of them actually gets used. 🌈

πŸ”₯ SEE ALSO πŸ”₯

go read the docs if you want the deep lore, bestie πŸ’–


and that's the whole page!! ✨ this absolute classic is EC2 API command line tools version 1.6.14.1, api=2014-05-01, and it's been out here doing its little route-replacing thing since forever. vintage, honestly. πŸ’… πŸ¦‹ no cap, thank you for reading, mwah 🫢

πŸ“¦ where this page comes from