I'm having trouble with AWS CloudShell in the eu-west-2 region. When I try to run AWS CLI commands, like `aws sts get-caller-identity`, I get a 500 Internal Server Error message that I've never seen before. It says there's an issue with retrieving credentials from the container role. Has anyone else encountered this problem, or does anyone have a solution?
3 Answers
You should also check your AWS credentials file located in ~/.aws/credentials. If that’s not set up correctly, it could cause issues. Another potential fix is to delete your CloudShell home directory and start fresh. There are troubleshooting steps in the AWS documentation that can help with that.
It sounds like it could be a permission issue with your AWS account setup. I had a similar problem before, and once I checked the permissions, everything was working fine for me. You might want to verify your IAM policies.
Wouldn’t you see a permission denied error if the IAM policy was insufficient? Just a thought.
I can confirm that everything works as expected on my end in that region. You might want to check your account settings or AWS configuration.

I'm using it in eu-west-2 too, so it seems consistent.