From 56e4a6de3f42910364522385e03f37b5b6838d99 Mon Sep 17 00:00:00 2001 From: lpm0073 Date: Fri, 16 Jun 2023 18:03:01 -0600 Subject: [PATCH] us-east-2 won't give internet access via NAT gateway unless the instance has a public ip address --- .../terraform/stacks/modules/mongodb/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/mongodb/main.tf b/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/mongodb/main.tf index 3bb9cfee..d785ad56 100644 --- a/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/mongodb/main.tf +++ b/{{cookiecutter.github_repo_name}}/terraform/stacks/modules/mongodb/main.tf @@ -41,7 +41,7 @@ resource "aws_instance" "mongodb" { key_name = aws_key_pair.mongodb.key_name subnet_id = var.subnet_id monitoring = false - associate_public_ip_address = false + associate_public_ip_address = true ebs_optimized = false tags = merge(