IPAM VPC #25533
Unanswered
fradetjulien
asked this question in
Q&A
IPAM VPC
#25533
Replies: 2 comments
-
Issue open : #25537 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I want to deploy the following ec2.Vpc with a CIDR allocation done with IPAM.
However, it is impossible for me to have a successful deployment if the
ipv4_netmask_length
is <20
.I can successfully deploy the vpc using an
ec2.IpAddresses.aws_ipam_allocation
resource with anipv4_netmask_length
>=20
I receive the following error :
It seems that the count variable computed here is greater than the maximum allowed value
256
defined here. Causing an error when calling theFn.cidr
method here.This looks normal to me because :
const count = Math.pow(2, netmask - rootNetmask);
math.pow(2, 28 - 16) = 4096
math.pow(2, 24 - 16) = 256
math.pow(2, 28 - 20) = 256
In my case, I think I need to generate the following CIDRs :
- !Cidr 10.0.0.0/16, 256, 24
- !Cidr 10.0.0.0/16, 4096, 28
But the range limitation from the
Fn.cidr
method forbids it. I don't understand why..When I use the
ec2.IpAddresses.cidr
resource, I have no problem because theallocateSubnetsCidr
it is not using theFn.cidr
method. See here.I'm sure I must have misunderstood certain notions or functions, sorry in advance. Any help would be really appreciated!
Beta Was this translation helpful? Give feedback.
All reactions