Skip to content

Commit

Permalink
created sg.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
vikas99341 authored Jan 12, 2023
1 parent 0dc13f2 commit a88e449
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions remote-state/security-project/sg.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
resource "aws_security_group" "allow_tls" {
name = "allow_tls"
description = "Allow TLS inbound traffic"

ingress {
description = "TLS from VPC"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["${data.terraform_remote_state.eip.output.eip_addr}/32"]
}

egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}

}

0 comments on commit a88e449

Please sign in to comment.