본문 바로가기

퍼블릭 클라우드

AWS CodeDeploy 에이전트 설치(codedeploy-agent install)

728x90

AWS CodeDeploy 에이전트 설치(codedeploy-agent install)

테스트 환경

$ cat /etc/os-release 
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

ruby 패키지 설치

sudo yum install -y ruby
cd /home/ec2-user

codedeploy 에이전트 설치

wget -q https://aws-codedeploy-`curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region`.s3.`curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region`.amazonaws.com/latest/install -O install

서울 리전 버킷에서 CodeDeploy Agent 설치 스크립트 다운로드

wget https://aws-codedeploy-ap-northeast-2.s3.ap-northeast-2.amazonaws.com/latest/install
chmod +x ./install
sudo ./install auto
728x90
systemctl status codedeploy-agent
systemctl --now enable codedeploy-agent

codedeploy-agent 버전 확인

yum info codedeploy-agent
$ yum info codedeploy-agent
Loaded plugins: extras_suggestions, fastestmirror, langpacks, priorities, update-motd
Loading mirror speeds from cached hostfile
 * epel: ftp.riken.jp
229 packages excluded due to repository priority protections
Installed Packages
Name        : codedeploy-agent
Arch        : noarch
Version     : 1.4.1
Release     : 2244
Size        : 13 M
Repo        : installed
Summary     : Provides the required files for CodeDeploy agent to run in EC2 instances
License     : Amazon.com Internal
Description : CodeDeploy instance agent is responsible for doing the actual work of deploying software
            : on an EC2 instance.

 

참고URL

- Amazon Linux 또는 RHEL용 CodeDeploy 에이전트 설치

- AWS 리전별 리소스 키트 버킷 이름

- Amazon Linux 또는 RHEL용 CodeDeploy 에이전트 업데이트

 

728x90