Skip to content

Instantly share code, notes, and snippets.

@mikepfeiffer
Created March 19, 2016 22:54
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 41 You must be signed in to fork a gist
  • Save mikepfeiffer/4d9386afdcceaf29493a to your computer and use it in GitHub Desktop.
Save mikepfeiffer/4d9386afdcceaf29493a to your computer and use it in GitHub Desktop.
EC2 UserData script to install CodeDeploy agent
#!/bin/bash
yum install -y aws-cli
cd /home/ec2-user/
aws s3 cp 's3://aws-codedeploy-us-east-1/latest/codedeploy-agent.noarch.rpm' . --region us-east-1
yum -y install codedeploy-agent.noarch.rpm
@eMahtab
Copy link

eMahtab commented Aug 14, 2018

Make sure the EC2 have the ruby installed, if its not installed above script will fail.

sudo yum install ruby -y

@rcherara
Copy link

rcherara commented Dec 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment