terraform-aws-dynamic-subnets icon indicating copy to clipboard operation
terraform-aws-dynamic-subnets copied to clipboard

fix: enable nat gateway when only private subnets are enabled

Open wadhah101 opened this issue 10 months ago • 2 comments

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

references

wadhah101 avatar Apr 21 '24 12:04 wadhah101