Hey now! I'm beating my head against the wall try...
# general
f
Hey now! I'm beating my head against the wall trying to get a few subnets provisioned that only use ipv6. The issue comes when trying to break up the /56 cidr block. I've done everything I can to make it happen. the only way i have ever gotten an ipv6 cidr block assigned to a subnet so far is by actually using the /56 blocks. every time i try to make a /64 block, it gets kicked back with an error like this:
Copy code
aws:ec2:Subnet (subnet-pub-b):
    error: aws:ec2/subnet:Subnet resource 'torque-subnet-pub-b' has a problem: "xxxx:xxxx:xxxx:xxxx:0002::/64" is not a valid IPv6 CIDR block; did you mean "xxxx:xxxx:xxxx:xxxx::/64"?. Examine values at 'torque-subnet-pub-b.ipv6CidrBlock'.
the 0002 in the address is being appended as a way to break up the subnets. i'm creating 4 of them, and it seemed logical to just break them up as 1, 2, 3, and 4. i'll be the first to admit that i'm a complete newbie when it comes to ipv6, so i wouldn't be surprised if this isn't a pulumi issue, but i thought i'd ask here first. extra info: AWS, javascript. not sure what other information might be relevant, but feel free to ask for more info!
h
You cant use the last hex like this. Use a ipv6 subnet calculator to see the logic. Not sure about the logic you ate using but uou can replace the last 2 digits of the first hex block instead for a /8 to be broken into /64.
f
Thanks for the response. Didn’t even think to pull up a calculator. I appreciate it!
@hallowed-horse-57635 5 minutes after pulling up a calculator, i now have everything I need. Thank you so much!