terraform-aws-dynamic-subnets
terraform-aws-dynamic-subnets copied to clipboard
fix: enable nat gateway when only private subnets are enabled
what
- Enabled Nat gateway creation when the module does not create public IPs
- Linked the nat gateway with the private subnet instead
why
- The default resource of Nat gateway will fail if public_subnets_enabled=false due to it using the first public subnet by default