- Newest
- Most votes
- Most comments
Hello.
The AWS VPC documentation explicitly states that when routes are managed via the CLI or API, the destination CIDR is automatically converted to its canonical form; for example, 100.68.0.18/18 is converted to 100.68.0.0/18. The commands listed as subject to this behavior are create-route, replace-route, and delete-route.
That is likely why it ended up as 0.0.0.0/0.
https://docs.aws.amazon.com/vpc/latest/userguide/WorkWithRouteTables.html
To update the routes for a route table using the AWS CLI
If you add a route using a command line tool or the API, the destination CIDR block is automatically modified to its canonical form. For example, if you specify 100.68.0.18/18 for the CIDR block, we create a route with a destination CIDR block of 100.68.0.0/18.
Hi Riku,
Many thanks for highlighting the behaviour in the documentation.
Regards
Dek
answered a month ago
Relevant content
asked 3 years ago
