VPC/CIDR IPv4 issue
Hello, Good day. Just started learning how to write IAAC on Cloud Formation using my text editor and I noticed something I don't understand.
Scenario 1 : If i create a VPC with an IPv4 CIDR (10.0.1.0/16) it rejects on the AWS console as invalid.
Scenario 2 : But if i run it as IAAC (Cloud formation) on a connected text editor, it corrects the mistake and works but the error remains in the CFN template
I have screenshots incase this is needed.
This is because CloudFormation corrects the VPC CIDR to its canonical form. See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
CidrBlock The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.
This explains it quite well. Thank you very much.
Do we need VPC Endpoints for SNS and SQS if data not originating from any VPC and directly landing in SNS from external sourceasked 5 months ago
How many EFS volumes can I truly create?Accepted Answerasked 4 months ago
VPC/CIDR IPv4 issueasked 25 days ago
Have a VPC using a 10.1.0.0/16Accepted Answerasked 5 years ago
is there a tool that can generate a cloud formation script to recreate a current VPC and it's associated configurationsAccepted Answerasked 3 months ago
FSX custom backup cloud formation template Failing to create stackasked 3 years ago
How can I create a friends list with GameLift?asked a year ago
How do I test my code to handle UnprocessedItems on a BatchWriteItem?asked 5 months ago
AWSIoTMQTTClient - how can I tell if the client is offline?asked 3 years ago
Deploying a Machine Learning Project with django and laravel as a backend.asked 2 months ago