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
ID | TYPE | DESCRIPTION |
---|---|---|
classicLoadBalancers | []aws.elb.loadbalancer | list of classic load balancers |
loadBalancers | []aws.elb.loadbalancer | list 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