Last active
October 7, 2019 19:39
-
-
Save yuklia/401c6851d95bba8308246e6d7ea58db1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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