We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20daf5a commit b873b7aCopy full SHA for b873b7a
terraform/account-wide-infrastructure/modules/ec2/ec2.tf
@@ -1,10 +1,11 @@
1
# Create the Linux EC2 Web server
2
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
+ associate_public_ip_address = false
+ ami = data.aws_ami.windows-2019.id
+ instance_type = var.instance_type
+ key_name = aws_key_pair.ec2_key_pair.key_name
+ subnet_id = var.subnet_id
8
+ security_groups = var.security_groups
9
10
user_data = file("${path.module}/scripts/user_data.tpl")
11
0 commit comments