Terraform on AWS: Nonprod and Production Environments · Network: VPC, Subnets, ALB and Security Groups

ALB, HTTPS Listeners and Security Groups

Front your VPC with an Application Load Balancer that terminates HTTPS, redirects HTTP to HTTPS, and forwards to a target group, backed by security groups that only allow what's needed.

Members can save this page, take notes and track progress. See membership · Sign in

What you'll build

An Application Load Balancer in the public subnets with an HTTPS listener that forwards requests to an ECS target group, an HTTP listener that redirects everything to HTTPS, and two security groups: one for the ALB (open to the internet on 80/443) and one for the ECS service (open only to the ALB on the app port).

Premium course

Keep reading with a membership

The rest of this lesson, its practice questions and the whole Terraform on AWS: Nonprod and Production Environments course are part of the membership.

See plans Sign in

Open in the app to mark lessons complete, take notes and track your progress.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake