Created
April 20, 2016 15:32
-
-
Save ajcrites/0ae1acf61805bb7a7c95008d7075356d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
cd /home/ec2-user/ingest | |
./run.sh | |
aws --region=us-east-1 autoscaling terminate-instance-in-auto-scaling-group --instance-id $(curl http://169.254.169.254/latest/meta-data/instance-id) --should-decrement-desired-capacity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment