Filtering local zones during VPC setup #211
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
I tried to run the Terraform bootstrap in
us-west-2
where I previously have the Los Angeles local zones enabled and received the following error duringterraform apply
:Reviewing the VPC module code I found we're not filtering local zones AZs which would make the code to break as NAT Gateways are not supported in all local zones at this time and we're using
single_nat_gateway = true
as well.Motivation
Keeping the Terraform bootstrap code to work as is, regardless of the eventual opted-in local zones.
More
Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
Yes, I have added a new example under examples to support my PR
Yes, I have updated the docs for this feature
Yes, I have linked to an issue or feature request (applicable to PRs that solves a bug or a feature request). Fix [Bug]: Terraform bootstrap fails if local zones are enabled #210
Note:
For Moderators
Additional Notes