"Principal": {
"Service": [
"ec2.amazonaws.com" ==> "codedeploy.amazonaws.com" (변경!)
]
},
The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems.
#!/bin/bash
sudo su -
yum -y update
yum install -y ruby
yum install -y aws-cli
cd /home/ec2-user
aws s3 cp s3://aws-codedeploy-us-east-2/latest/install . --region us-east-2
chmod +x ./install
./install auto
뭔가 설치가 제대로 안됨
CodeDeploy 에이전트가 설치되지 않음을 확인.
awsLinuxCodeDeployAgent 설치
설치후 다시 실행.
설정하면 running 중인 인스턴스에 자동으로 dns 주소가 생성됨
단 openaddress는 잘 열리지 않는다? 복붙해서 직접 주소로 들어가길 추천 🤔