Skip to content

Instantly share code, notes, and snippets.

@juanpagfe
Last active March 22, 2018 16:59
Show Gist options
  • Save juanpagfe/1fcc2c0fca8dcb50ef166cb2a1a68292 to your computer and use it in GitHub Desktop.
Save juanpagfe/1fcc2c0fca8dcb50ef166cb2a1a68292 to your computer and use it in GitHub Desktop.
EC2 User Data script to install CodeDeploy agent
#!/bin/bash
sudo 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
sudo 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