Skip to content

Instantly share code, notes, and snippets.

@yuklia
Last active October 7, 2019 19:39
Show Gist options
  • Save yuklia/401c6851d95bba8308246e6d7ea58db1 to your computer and use it in GitHub Desktop.
Save yuklia/401c6851d95bba8308246e6d7ea58db1 to your computer and use it in GitHub Desktop.
1 # make sure proxyPolicy is disabled. => "BackendServerDescriptions" : []
aws elb describe-load-balancer-policy-types
2 aws elb create-load-balancer-policy --load-balancer-name %lb_name% --policy-name %name% --policy-type-name ProxyProtocolPolicyType --policy-attributes AttributeName=ProxyProtocol,AttributeValue=true
3 aws elb set-load-balancer-policies-for-backend-server --load-balancer-name %lb_name% --instance-port 443 --policy-names %policy_name%
4 check (optional)
aws elb describe-load-balancers --load-balancer-name %lb_name%
debug:
aws elb delete-load-balancer-policy --load-balancer-name %lb_name% --policy-name %policy_name%
# get ELB IPs
aws ec2 describe-network-interfaces --filters Name=description,Values="ELB elb_name" --query 'NetworkInterfaces[*].PrivateIpAddresses[*]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment