IPv4/IPv6 Native Functions* Caveat * I’m still very new to both Pulumi and TypeScript
Are there any native capabilities to handle CIDR block allocation from a supernet (not using IPAM)?
i.e. if I have a 10.1.0.0/16 allocation, for each VPC I want to allocate the next /20 prefixes for each VPC I’m creating?
I could look to use something like ipaddr.js but would like to avoid dependencies if at all possible.
c
cuddly-computer-18851
01/15/2024, 1:21 AM
awsx
has some functions like that it uses for its own subnetting, but I wouldn't rely on that.
m
miniature-rocket-28706
01/15/2024, 12:07 PM
Agreed…. I managed to find something to do what I needed, but need to test if it’s idempotent (a separate module to hand out the ’next prefix of defined size).