aws-ec2: cannot synth Vpc with CIDR mask configuration #25757
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
I cannot synth the following code:
Instead, I get the error
1 of /25 exceeds remaining space of 10.199.32.0/20
.Expected Behavior
I understand that the default config results in 3 AZs, meaning this configuration would have a total of 9 subnets.
As far as I'm aware, the above configuration should be able to produce a subnet layout similar to the following that fits within the given CIDR:
Current Behavior
Instead of the synth succeeding, I get the error
1 of /25 exceeds remaining space of 10.199.32.0/20
.Reproduction Steps
Attempt to synth the example code.
Possible Solution
Perhaps there is a hidden network feature that is restricting the IP space available to me, otherwise I think I've miscalculated my subnets or this is a bug.
Additional Information/Context
No response
CDK CLI Version
2.81.0
Framework Version
No response
Node.js Version
20.2.0
OS
Arch Linux 6.3.4
Language
Typescript
Language Version
JavaScript
Other information
If I reduce the
PRIVATE_WITH_EGRESS
CIDR mask to /23, I can successfully synth the project but this provides me with considerably fewer IPs.The text was updated successfully, but these errors were encountered: