Skip to content

Instantly share code, notes, and snippets.

@punkdata
Created June 7, 2016 22:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save punkdata/869dbd316df4813de7f2a6bc47f6ace8 to your computer and use it in GitHub Desktop.
Save punkdata/869dbd316df4813de7f2a6bc47f6ace8 to your computer and use it in GitHub Desktop.
AWS EC2 Spot Instance with ECS Agent install
# 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