Skip to content

Instantly share code, notes, and snippets.

@derek-schaefer
Created April 17, 2015 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derek-schaefer/3bcee69373847ca868ef to your computer and use it in GitHub Desktop.
Save derek-schaefer/3bcee69373847ca868ef to your computer and use it in GitHub Desktop.
Enable TCP proxy protocol on AWS ELB
# Cannot be enabled via the console at time of writing
aws elb create-load-balancer-policy --load-balancer-name $ELB_NAME --policy-name EnableProxyProtocol --policy-type-name ProxyProtocolPolicyType --policy-attributes AttributeName=ProxyProtocol,AttributeValue=True
aws elb set-load-balancer-policies-for-backend-server --load-balancer-name $ELB_NAME --instance-port $ELB_PORT --policy-names EnableProxyProtocol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment