Have you tried to add the rest of the subnet in th...
# general
q
Have you tried to add the rest of the subnet in the unused type? [cidrBlocks: [10.1.128.0/17],?
c
yeah but then I get this error:
Copy code
The number of CIDR blocks in subnetSpecs[2] must match the number of availability zones (2).
q
In that case try ['10.1.128.0/18', '10.1.192.0/18']
🙏 1
c
ooooh that's a great idea, trying now
👍 1
getting an error with gaps now but thank you for the suggestion, feels like im moving forward
If curious:
Copy code
Please fix the following gaps: 
base-vpc-public-1 (10.1.0.0/19) <=> base-vpc-private-1 (10.1.64.0/19), 
base-vpc-private-1 (10.1.64.0/19) <=> base-vpc-unused-1 (10.1.128.0/18), 
base-vpc-unused-1 (10.1.128.0/18) <=> base-vpc-public-2 (10.1.32.0/19), 
base-vpc-public-2 (10.1.32.0/19) <=> base-vpc-private-2 (10.1.96.0/19), 
base-vpc-private-2 (10.1.96.0/19) <=> base-vpc-unused-2 (10.1.192.0/18)
not even sure why it's creating a resource for
unused
ok i got it but I had to respect the arbitrary order of
public
->
private
-> `unused`:
Copy code
subnetSpecs: [
  {
    type: 'Public',
    cidrBlocks: ['10.1.0.0/19', '10.1.128.0/19'],
  },
  {
    type: 'Private',
    cidrBlocks: ['10.1.32.0/19', '10.1.160.0/19'],
  },
  {
    type: 'Unused',
    cidrBlocks: ['10.1.64.0/18', '10.1.192.0/18'],
  },
],
q
Ah great news, good job 🙂
🙏 1
c
ty again for your help!
❤️ 1
q
Most welcome!