EC2-REPLACE-ROUTE(1)
π 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-keyKEY β AWS Access Key ID. Defaults to the value of theAWS_ACCESS_KEYenvironment variable (if set).-W,--aws-secret-keyKEY β AWS Secret Access Key. Defaults to the value of theAWS_SECRET_KEYenvironment variable (if set).-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.
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,--certCERT β [DEPRECATED] Specify CERT as the X509 certificate to use. Defaults to the value of theEC2_CERTenvironment variable (if set). Overrides the default.
also deprecated π same energy. we stan a legacy option but we don't use a legacy option.
-U,--urlURL β Specify URL as the web service URL to use. Defaults to the value ofhttps://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 andEC2_URLenvironment variable. This option defaults to the region specified by theEC2_URLenvironment variable or us-east-1 if this environment variable is not set.
the way that--regionjust casually steamrolls over-UandEC2_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-timeoutTIMEOUT β Specify a connection timeout TIMEOUT (in seconds).--request-timeoutTIMEOUT β 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,--gatewayGATEWAY β The gateway associated with the route. Must specify this, or-i/--instance, or-n/--network, or-p/--vpc-peering-connection.-i,--instanceINSTANCE β The instance associated with the route. Must specify this, or-g/--gateway, or-n/--network, or-p/--vpc-peering-connection.-n,--network-interfaceNETWORKINTERFACE β The network interface associated with the route. Must specify this, or-i/--instance, or-g/--gateway, or-p/--vpc-peering-connection.-p,--vpc-peering-connectionVPC_PEERING_CONNECTION β The VPC Peering Connection associated with the route. Must specify this, or-i/--instance, or-n/--network, or-g/--gateway.-r,--cidrCIDR β 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 π₯
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
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
- 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