CodeDeploy just recognizes IAM instance profiles after restarting agent

0

Hello,

I was trying to do a deploy using codedeploy, and after some fails I noticed I forgot to attach the IAM instance profile to my instance. So, I attached the profile to my instance but I was still receiving the same error "Missing credentials - please check if this instance was started with an IAM instance profile", even after listing and downloading objects from my bucket using the cli. So after all, I restarted the codedeploy-agent service and it worked. What could have happened?

질문됨 5년 전1873회 조회
1개 답변
0
수락된 답변

Hello,

The behavior you have noted is an expected behavior. After attaching the Instance Profile, it is recommended to restart the agent on the instance or the instance itself must be restarted to acknowledge the IAM Instance Profile that was attached to it.

Cheers!

AWS
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠