Skip to content

Instantly share code, notes, and snippets.

@duduribeiro
Created October 3, 2016 13:10
Show Gist options
  • Save duduribeiro/348c52889858d77029af0af47632581f to your computer and use it in GitHub Desktop.
Save duduribeiro/348c52889858d77029af0af47632581f to your computer and use it in GitHub Desktop.
EC2 UserData script to install CodeDeploy agent (debian based)
#!/bin/bash
apt-get -y update
apt-get -y install awscli
apt-get -y install ruby2.0
cd /home/ubuntu
aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region region-name
chmod +x ./install
./install auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment