ELB target groups should use encrypted transport protocols
Flags Elastic Load Balancing target groups whose protocol is not HTTPS, TLS or QUIC, which leaves traffic between the load balancer and its targets unencrypted even when clients connect to the load balancer over TLS.
- service
- ELB
- severity
- Medium
- scope
- evaluated in every region
How to fix it
- Replaces the resource: A target group's protocol cannot be changed, so create a new one, register the targets, repoint every listener and rule that forwards here, then delete this one.
In the console
EC2 → Target groups → Create target group
- Protocol
- HTTPS (Application Load Balancer); TLS behind a TLS listener, or QUIC behind a QUIC one (Network Load Balancer)
- Port
- The port the targets serve TLS on; a self-signed certificate works
- Health check protocol
- HTTPS, so the new group passes ELB.21 too
With the AWS CLI
aws elbv2 create-target-group --name <target-group-name> --protocol HTTPS --port 443 --vpc-id <vpc-id> --target-type instance --region <region>With Terraform
resource "aws_lb_target_group" "this" {
protocol = "HTTPS"
port = 443
vpc_id = var.vpc_id
}
See which of your accounts this check is failing on.
Book a live scan