Last active
August 6, 2019 12:14
-
-
Save amcginlay/c6d2f618a4f0ebc24f2df4197a456afc to your computer and use it in GitHub Desktop.
Install CodeDeploy agent on your EC2 instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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