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?

demandé il y a 5 ans1873 vues
1 réponse
0
Réponse acceptée

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
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions