CodeDeploy Agent Install Boot Shell Script
#!/bin/bash yum -y update yum -y install wget ruby cd /home/ec2-user wget https://aws-codedeploy-ap-northeast-2.s3.amazonaws.com/latest/install chmod 777 ./install sudo ./install auto systemctl restart codedeploy-agent systemctl enable codedeploy-agent 위 명령어를 사용하여 CodeDeploy Agent를 User Data에 기입하여 EC2 Instance가 런칭되면 바로 사용할 수 있게 할 수 있습니다.