Skip to content

Instantly share code, notes, and snippets.

@techyboy
Created March 9, 2018 20:31
Show Gist options
  • Select an option

  • Save techyboy/e5ae88cfd64bcb2f6eeeb4086fb2133f to your computer and use it in GitHub Desktop.

Select an option

Save techyboy/e5ae88cfd64bcb2f6eeeb4086fb2133f to your computer and use it in GitHub Desktop.
UserData for CodeDeployAgent
#!/bin/bash
sudo apt-get update -y
sudo apt-get install python-pip -y
sudo apt-get install ruby -y
sudo apt-get install wget -y
wget https://aws-codedeploy-us-east-1.s3.amazonaws.com/latest/install
apt-add-repository ppa:brightbox/ruby-ng -y
apt-get update
apt-get install ruby2.2 ruby2.2-dev -y
chmod +x ./install
./install auto
service codedeploy-agent status
service codedeploy-agent start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment