Skip to content

Commit

Permalink
Addresing duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzymilk committed Feb 29, 2024
1 parent a55edf4 commit a68cfdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions terraform_labs_aws/lab-005/lab-005.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ resource "aws_lb" "alb" {

}

resource "aws_lb_target_group" "target_group_http" {
name = "alb-http-tg"
resource "aws_lb_target_group" "target_http" {
name = "http-tg"
port = 80
protocol = "HTTP"
target_type = "instance"
Expand Down Expand Up @@ -156,7 +156,7 @@ resource "aws_security_group" "http_access_sg" {
from_port = 80
to_port = 80
protocol = "tcp"
security_groups = ["aws_security_group.alb_sg.id"]
security_groups = [aws_security_group.alb_sg.id]
}

egress {
Expand All @@ -170,7 +170,7 @@ resource "aws_security_group" "http_access_sg" {
}

resource "aws_security_group" "alb_sg" {
name = "AWS remote access"
name = "http access"
description = "Enable HTTP forwarding and remote access"
vpc_id = aws_vpc.lab_005_vpc.id

Expand Down

0 comments on commit a68cfdb

Please sign in to comment.