1 Answer
- Newest
- Most votes
- Most comments
0
Hello,
The error message "Unable to retrieve AWS credentials. Please assign an IAM Role to this instance." indicates that the instance is trying to access AWS services but cannot find the necessary credentials. Let's assume you've configured your roles and policies correctly to access required AWS services. Here’s a step-by-step guide to resolve this:
Verify IAM Role Attachment: Ensure that the DynamicWebsite-Role IAM role is correctly attached to the instance i-0a1712f477e347dd1.
- Open the EC2 Management Console.
- Select the instance i-0a1712f477e347dd1.
- Check the "IAM role" field under the "Description" tab. Ensure it shows DynamicWebsite-Role. If not follow the below documentation to attach the IAM role(DynamicWebsite-Role) to an EC2 instance.
Instance Profile Association: Ensure the instance profile is correctly associated with the IAM role. Sometimes, creating a role doesn't automatically associate it with an instance profile. Attach role to an instance
answered 15 days ago
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 9 months ago