Skip to content

Instantly share code, notes, and snippets.

@luckydev
Last active January 24, 2019 10:53
Show Gist options
  • Save luckydev/242a226d1fc0c2bacda8bd089edba187 to your computer and use it in GitHub Desktop.
Save luckydev/242a226d1fc0c2bacda8bd089edba187 to your computer and use it in GitHub Desktop.
Install codedeploy agent in an EC2 instance
#!/bin/bash
sudo apt-get -y install ruby
sudo apt-get -y install wget
# this location varies for every region. replace aws-codedeploy-us-west-1 with name given here https://docs.aws.amazon.com/codedeploy/latest/userguide/resource-kit.html#resource-kit-bucket-names
wget -c https://aws-codedeploy-us-west-1.s3.amazonaws.com/latest/install
chmod +x ./install
sudo ./install auto
sudo service codedeploy-agent start
sudo service codedeploy-agent status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment