展開を成功させるために必要なものをすべて作成しました。Amazon インスタンスで CodeDeploy エージェントを設定せずにデプロイしようとしましたが、デプロイは [明らかに] 失敗しました。しかし、それを設定した後、成功しました。私の質問は、使用するすべてのインスタンスを手動で構成する必要があるかどうかです。デプロイ グループに 100 個のインスタンスがある場合はどうなりますか? CodeDeploy エージェントツールが設定済みの AMI を作成する必要がありますか?
編集
私はこれを見ました: https://www.youtube.com/watch?v=qZa5JXmsWZs
これで: https://github.com/andrewpuch/code_deploy_example
インスタンスの IAM クレデンシャルを使用して構成する必要がある理由がわかりません。私が立ち上げた役割から信用を得ることになっていませんか?私は AWS の役割とポリシーの専門家ではありませんが、CD のドキュメントから、これは私が理解したことです。IAM ユーザーにインスタンスへのアクセス権を付与して、CD エージェントをセットアップする必要がないようにする方法はありますか?
編集2
この投稿のような答えだと思います: http://adndevblog.typepad.com/cloud_and_mobile/2015/04/practice-of-devops-with-aws-codedeploy-part-1.html
But as you can see, I launched multiple instances but I only installed CodeDeploy agent on one instance, what about others? Do I have to repeat myself and login to them and install them separately? It is OK since I just have 2 or 3. But what if I have handers or even thousand of instances? Actually there are different solutions for this. One of them is, I setup all environment on one instances and create an AMI from it. When I launch my working instance, I will create instance from the one I’ve already configured instead of the AWS default ones. Some other solutions are available