File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
terraform/account-wide-infrastructure/modules Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11# Create the Linux EC2 Web server
22resource "aws_instance" "web" {
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
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
99
1010 user_data = file (" ${ path . module } /scripts/user_data.tpl" )
1111
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ resource "aws_security_group" "sg" {
5959 from_port = 3389
6060 to_port = 3389
6161 protocol = " tcp"
62- cidr_blocks = [var . vpc_public_subnets_cidr_block ]
62+ cidr_blocks = [" 0.0.0.0/0 " ]
6363 ipv6_cidr_blocks = [" ::/0" ]
6464 }
6565
You can’t perform that action at this time.
0 commit comments