This is a simple how-to on updating an AWS Classic Load Balancer with a specific TLS Negotiaion Policy. Just read the script to see how the update works.
To get a list of available predefined policies that are available execute
aws elb describe-load-balancer-policies --query 'PolicyDescriptions[?PolicyTypeName==`SSLNegotiationPolicyType`].{PolicyName:PolicyName}' --output table
There are two ways you can create a policy:
- Create a policy using a predefined policy as a reference.
- Create a policy from scratch
- Ensure AWS Load Balancer is using TLS 1.2
- AWS Configure TLS listeners
- How do I determine the active SSL security policy associated with my ELB listener using the AWS CLI?
- Predefined SSL security policies for Classic Load Balancers
- Update the SSL negotiation configuration of your Classic Load Balancer