-
Notifications
You must be signed in to change notification settings - Fork 27
exlucde ap-norhteast-1a as nats unavaiable zone #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
what a tricky thing indeed :/ checked TF resources and although there is an mainly to avoid maintaining a list of explicit zones, and as it may also reduce some costs, letme give it a try to the "Single NAT Gateway" scenario and see if it may serve as a workaround |
it looks so better than listed up by ourselves. thanks. I will wait for your fix. |
@wideawakening I checked the VPC terraform module code. It accepts the AZ via a variable. I think we accept the az like the VPC module. |
that's another valid solution indeed, can expose azs as var on our internal
regarding the VPC configuration, nailing it down to customer config is gonna be a tricky thing to shape-up, let alone a production network configuration. currently it's just a quick setup to get this up running for a trial test, but don't think it suits a production environment setup.
as for your use case, would it make sense to let user input those two variables as a pre-existing VPC? let us know your thoughts about those two options |
Yes, that makes sense. I'd like As the options, I think it should be production ready as redundant and security by default and would have some options for reducing costs and customization. |
closing this PR in favor of #53 to handle testing gh actions (secrets are not shared when merging forks)
resulted in the datasource
and got the desired error
hope that serves @ukitazume |
Hi @wideawakening , |
Nat Gateway is not available in ap-northeast-1a, so I exclude the zone for the list.
the data source of availability_zones has no fit filter to exclude Nat gateway unavailable zone, so I specify it by zone_id.
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones
Without this commit, it runs the below error on ap-northeast-1.