Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 720 Bytes

aws-elbv2-http-not-used.md

File metadata and controls

29 lines (19 loc) · 720 Bytes

Pattern: Use of HTTP for AWS load balancer

Issue: -

Description

Plain HTTP is unencrypted and human-readable. This means that if a malicious actor was to eavesdrop on your connection, they would be able to see all of your data flowing back and forth.

You should use HTTPS, which is HTTP over an encrypted (TLS) connection, meaning eavesdroppers cannot read your traffic.

Resolution: Switch to HTTPS to benefit from TLS security features.

Examples

Example of incorrect code:

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

Example of correct code:

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