EC2向けに作成(信頼サービス EC2)。作成後にEC2に付与する
CodeDeploy向けに作成(信頼サービス Code Deployを選ぶと下記管理ポリシーが選択状態で出てくるはず)
https://aws.amazon.com/jp/premiumsupport/knowledge-center/codedeploy-agent-launch-configuration/
sudo yum update sudo yum install ruby sudo yum install wget cd /home/ec2-user wget https://aws-codedeploy-ap-northeast-1.s3.ap-northeast-1.amazonaws.com/latest/install chmod +x ./install sudo ./install auto
https://github.com/aws-samples/aws-codepipeline-s3-codedeploy-linux/blob/master/appspec.yml
https://dev.classmethod.jp/articles/blue-green-deployment-for-ecs-fargate-using-codedeploy/