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?

posta 5 anni fa1873 visualizzazioni
1 Risposta
0
Risposta accettata

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
con risposta 4 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande