Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schmohlio/4157d2fa82f3680fd08f1b111ed61515 to your computer and use it in GitHub Desktop.
Save schmohlio/4157d2fa82f3680fd08f1b111ed61515 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment