Skip to main content

aws.elb

Supported Platform

  • aws

Description

AWS Elastic Load Balancing

The aws.elb resource can be used to assess the configuration of Amazon Elastic Load Balancers within an AWS account.

Fields

IDTYPEDESCRIPTION
classicLoadBalancers[]aws.elb.loadbalancerlist of classic load balancers
loadBalancers[]aws.elb.loadbalancerlist of application, gateway, and network load balancers (elbv2)

Examples

Return a list of all application, gateway, and network Elastic Load Balancers deployed across every enabled region and the values for specified fields

aws.elb.loadbalancers {
arn
dnsName
listenerDescriptions
name
scheme
attributes
}

Return a list of all classic Elastic Load Balancers deployed across every enabled region and the values for specified fields

aws.elb.classicLoadBalancers {
arn
dnsName
listenerDescriptions
name
scheme
attributes
}

Checks whether HTTP to HTTPS redirection is configured on all application load balancer http listeners

aws.elb.loadBalancers.all(
listenerDescriptions.any(_["Protocol"] == "HTTPS" || _["Protocol"] == "SSL")
);

Checks that all Classic Load Balancers use SSL certificates provided by AWS Cert Mgr

aws.elb.classicLoadBalancers.all(
listenerDescriptions.any(
_["Listener"]["Protocol"] == "HTTPS" || _["Listener"]["Protocol"] == "SSL"
)
);

References