Created
March 19, 2016 22:54
-
-
Save mikepfeiffer/4d9386afdcceaf29493a to your computer and use it in GitHub Desktop.
EC2 UserData script to install CodeDeploy agent
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 | |
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 |
If you are on Ubuntu run the following script :
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure the EC2 have the ruby installed, if its not installed above script will fail.
sudo yum install ruby -y