Skip to content

Conversation

@vandrijevik
Copy link
Contributor

In some cases, we’ve skipped a subnet for historical reasons, and we have subnets like us-east-1a, us-east-1c, us-east-1d, and so on.

This PR allows migrating these historical use cases to the //aws/vpc/subnets module without having to rebuild the subnets, through the support of blacklisted_names as a variable. By specifying it, one can skip over an availability zone. In addition to this, removing the manual, hard-coded mapping of letters to numbers, and replacing it with a count-based index only, allows us to maintain the existing AZ-to-subnet-CIDR-block mapping, enabling us to use the module without rebuilding everything in the VPC.

@vandrijevik vandrijevik merged commit 427effe into master Dec 3, 2019
@vandrijevik vandrijevik deleted the va-support-blacklisted_names-for-subnets branch December 3, 2019 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants