Skip to content

Commit

Permalink
us-east-2 won't give internet access via NAT gateway unless the insta…
Browse files Browse the repository at this point in the history
…nce has a public ip address
  • Loading branch information
lpm0073 committed Jun 17, 2023
1 parent 048ee0f commit 56e4a6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 56e4a6d

Please sign in to comment.