Skip to content

Commit b873b7a

Browse files
committed
NRL-1385 security fix
1 parent 20daf5a commit b873b7a

File tree

1 file changed

+6
-5
lines changed
  • terraform/account-wide-infrastructure/modules/ec2

1 file changed

+6
-5
lines changed

terraform/account-wide-infrastructure/modules/ec2/ec2.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Create the Linux EC2 Web server
22
resource "aws_instance" "web" {
3-
ami = data.aws_ami.windows-2019.id
4-
instance_type = var.instance_type
5-
key_name = aws_key_pair.ec2_key_pair.key_name
6-
subnet_id = var.subnet_id
7-
security_groups = var.security_groups
3+
associate_public_ip_address = false
4+
ami = data.aws_ami.windows-2019.id
5+
instance_type = var.instance_type
6+
key_name = aws_key_pair.ec2_key_pair.key_name
7+
subnet_id = var.subnet_id
8+
security_groups = var.security_groups
89

910
user_data = file("${path.module}/scripts/user_data.tpl")
1011

0 commit comments

Comments
 (0)