Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Last active August 6, 2019 12:14
Show Gist options
  • Save amcginlay/c6d2f618a4f0ebc24f2df4197a456afc to your computer and use it in GitHub Desktop.
Save amcginlay/c6d2f618a4f0ebc24f2df4197a456afc to your computer and use it in GitHub Desktop.
Install CodeDeploy agent on your EC2 instance
#Install CodeDeploy agent on your EC2 instance:
sudo yum update -y
sudo yum install ruby
sudo yum install wget
cd /home/ec2-user
wget https://aws-codedeploy-eu-central-1.s3.amazonaws.com/latest/install
chmod +x ./install
sudo ./install auto
sudo service codedeploy-agent status
#Create your application.zip and load it into CodeDeploy:
aws deploy create-application --application-name mywebapp
aws deploy push --application-name mywebapp --s3-location s3://<MY_BUCKET_NAME>/webapp.zip --ignore-hidden-files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment