Last active
August 31, 2020 18:29
-
-
Save gayanvirajith/3f2f7a3fcda4855cd2b70e347d1d0c2d to your computer and use it in GitHub Desktop.
Code Deploy Agent Install
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
#!/bin/bash | |
#### | |
# Note: bucket name and the region can be changed | |
# Reffer below links for more details: | |
# https://docs.aws.amazon.com/codedeploy/latest/userguide/resource-kit.html#resource-kit-bucket-names | |
# https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install-linux.html | |
#### | |
CODE_DEPLOY_BUCKET_NAME=aws-codedeploy-us-east-1 | |
REGION=us-east-1 | |
sudo yum update && sudo yum install -y ruby wget | |
cd /home/ec2-user | |
wget "https://${CODE_DEPLOY_BUCKET_NAME}.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