-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EC2RoleRequestError: no EC2 instance role found after SSM Agent update. #609
Comments
Are there full logs after:
It looks like the credentials failed to connect to Instance Profile via IMDSv2 and are pending retry in 5 minutes before the log truncated, is that when you restarted the instance? If this error is consistently recorded after, it suggest problem with the IMDS client on the EC2 instance. |
The only logs from the ssm-agent after this point are the lines listed above. The instance was restarted a few hours after the issue occurred when we noticed we could not connect to the instance using SSM. During the restart, the ssm-agent received a shutdown call and started normally after the restart. |
We faced an Issue that after an update of the SSM Agent running on an EC2 Instance it returned an error that it cannot find the EC2 Instance Role.
The update is triggered by the SSM Agent Document: AWS-UpdateSSMAgent.
The update was from version: 3.3.1142.0-1.x86_64 to 3.3.1230.0-1.x86_64.
The Issue persisted until the EC2 Instance was restarted.
Output from /etc/os-release
The text was updated successfully, but these errors were encountered: