Skip to content

IAM Login Failed

0

Greetings.

I've created an IAM user and enabled AWS SSO to log in as per recommended not to use root access.

I followed this tutorial to create the IAM user:

https://docs.aws.amazon.com/singlesignon/latest/userguide/get-started-prereqs-considerations.html https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html

But on my Windows Terminal, it keeps showing an error despite having full AdministratorAccess.

What am I doing wrong? Thank you.

1 2 3 4

4 Answers
1

Add --profile AdministratorAccess to the aws ec2 command.

You can also try aws sts get-caller-identity --profile AdministratorAccess to validate the credentials are set up correctly.

AWS
EXPERT

answered 3 years ago

0

When you type aws sts get-caller-identity, what is the output?

answered 3 years ago

0

Hi there,

I fixed the issue by editing my credentials file and manually adding the aws_session_token. I do not know why it is not an option from the aws configure sso command as it only asks sso session name and sso URL.

Thank you.

1

answered 3 years ago

0

Hello,

Is there a way to go directly to the management console instead of selecting accounts after logging in? The set relay URL doesn't work.

Thanks.

1

answered 3 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.