Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 464 Bytes

load_balancer_https.md

File metadata and controls

25 lines (16 loc) · 464 Bytes

Listener for application load balancer does not use HTTPS

The code example below use HTTP

resource "aws_alb_listener" "insecure_example" {
    protocol = "HTTP"
 }

Why it's vulnerable?

If a malicious actor were to eavesdrop on your connection, they would be able to see all of your data flowing back and forth.

How to fix?

Use HTTPS instead

 resource "aws_alb_listener" "secure_example" {
    protocol = "HTTPS"
 }