Skip to content

Instantly share code, notes, and snippets.

@teddychan
Created June 26, 2015 18:06
Show Gist options
  • Save teddychan/278d6eb47d6e07c0f186 to your computer and use it in GitHub Desktop.
Save teddychan/278d6eb47d6e07c0f186 to your computer and use it in GitHub Desktop.
#!/bin/bash
INSTANCE_ID=$(curl http://169.254.169.254/latest/meta-data/instance-id)
aws elb register-instances-with-load-balancer --load-balancer-name demo --instances ${INSTANCE_ID}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment