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?

preguntada hace 5 años1873 visualizaciones
1 Respuesta
0
Respuesta aceptada

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
respondido hace 4 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas