Skip to content

Instantly share code, notes, and snippets.

@lusis
Created June 6, 2011 17:32
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 lusis/426959f6049ffbd366ba to your computer and use it in GitHub Desktop.
Save lusis/426959f6049ffbd366ba to your computer and use it in GitHub Desktop.

You'll need the ELB toolkit and (optionally) the IAM toolkit

Add a regular port

elb-create-lb-listeners my-elb-id --headers --listener "lb-port=8080, instance-port=80"

Add an SSL port

(You'll need the IAM toolkit for this) If you already have an SSL cert uploaded:

iam-servercertgetattributes -s mysslcertname # This will spit back the ARN string for the cert

I've not uploaded a cert yet with the IAM toolkit but there's a commensurate command there as well

Now add the new listener:

elb-create-lb-listeners non-ssl-elb --headers \
--listener "lb-port=443,instance-port=80,protocol=https,cert-id=arn:aws:iam::9999999999:server-certificate/mysslcertname"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment