Projects

Create an external (Internet facing) Application Load Balancer (ALB)

Create an external (Internet facing) Application Load Balancer (ALB)

Create a file called alb.tf

First of all we need to create a security group for this ALB in security_groups.tf

resource "aws_security_group" "my-alb-sg" {
  name   = "my-alb-sg"
  vpc_id = aws_vpc.main.id
}

resource "aws_security_group_rule" "inbound_http" {
  from_port         = 80
  proto...
Learn More