Skip to content

Commit

Permalink
feature #1 - add sg
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 16, 2022
1 parent 9664c16 commit d1d9131
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions terraform/security-group.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
resource "aws_security_group" "lb" {
name = "sbf-exchangerate-${var.ENV}-alb-sg"
description = "Allow TLS inbound traffic"
vpc_id = var.vpc_id

ingress {
description = "HTTP from ALL"
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}

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

tags = {
Name = "allow_tls"
}
}

0 comments on commit d1d9131

Please sign in to comment.