Created
June 7, 2016 22:36
-
-
Save punkdata/869dbd316df4813de7f2a6bc47f6ace8 to your computer and use it in GitHub Desktop.
AWS EC2 Spot Instance with ECS Agent install
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
# Put this in the User data parameter in the spot instance | |
#!/bin/bash | |
yum -y update | |
yum install -y ecs-init | |
touch /etc/ecs/ecs.config | |
echo "ECS_CLUSTER=prezpoll" > /etc/ecs/ecs.config | |
service docker start | |
start ecs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment