Skip to content

Instantly share code, notes, and snippets.

@gayanvirajith
Last active August 31, 2020 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gayanvirajith/3f2f7a3fcda4855cd2b70e347d1d0c2d to your computer and use it in GitHub Desktop.
Save gayanvirajith/3f2f7a3fcda4855cd2b70e347d1d0c2d to your computer and use it in GitHub Desktop.
Code Deploy Agent Install
#!/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