Skip to content

Instantly share code, notes, and snippets.

@ramonornela
Last active January 17, 2021 22:14
Show Gist options
  • Save ramonornela/672d2cffdaf9b2343030ee02113deaa6 to your computer and use it in GitHub Desktop.
Save ramonornela/672d2cffdaf9b2343030ee02113deaa6 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
sudo yum -y update
sudo yum -y install ruby
sudo yum -y install wget
cd /home/ec2-user
region=`curl -s http://169.254.169.254/latest/meta-data/placement/region`
wget https://aws-codedeploy-$region.s3.$region.amazonaws.com/latest/install
chmod +x ./install
sudo ./install auto
sudo service codedeploy-agent status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment