-
Notifications
You must be signed in to change notification settings - Fork 204
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
✨ #42 Add support for provisioning only a single NAT Gateway #58
✨ #42 Add support for provisioning only a single NAT Gateway #58
Conversation
…with enable_nat_gateway input
🐛 terraform-community-modules#47 Fix issue with string vs bool value with enable_nat_gateway input
You may want to update the README to clarify what these parameters do, too. |
…single NAT Gateway
ed802eb
to
4c86823
Compare
@tfhartmann Good catch. Done. |
@antonbabenko this PR is ready for review/merge. |
The code looks good to me. I will merge it and tag a release, but unfortunately I won't be able to test it myself in the nearest future. If there are any issues with this module - open an issue (cc: all). |
No worries @antonbabenko. Thank you for all the great work leading up to this. |
DEPENDENT ON PR #57(merged)Sample setup:
Scenario 1 (high availability)
Prior to this change when you set
enable_nat_gateway=true
you would get the following infrastructure:While this follows high availability best practices and should be your configuration in a production, sometimes you don't want to incur the cost of having multiple NAT gateways in your dev and testing environments.
Scenario 2 (low availability)
After this change when you set
enable_nat_gateway=true
andsingle_nat_gateway=true
you would get the following infrastructure:Meaning that you share a single EIP/NAT gateway pairing across all of your private subnets. Reducing costs while maintaining functionality but being far less available. This leaves the onus on the person terraforming to decide whether or not they are ok with the cost/risk tradeoff.
Again, this scenario is not intended for a production environment.