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?

asked 5 years ago1856 views
1 Answer
0
Accepted Answer

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
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions