I'm trying to login using awscli in console with a IAM user I created Steps I followed
Created the IAM user using the root user with
AdministratorAccess, let's call the userjamesCreated access keys for
jamesand downloaded/copy themConfigured awscli in local machine with
[default] aws_access_key_id = XXX aws_secret_access_key = YYY sso_start_url = https://zzz.awsapps.com/start sso_account_id = 999888 sso_region = eu-north-1Logged in as
jamesin https://999888.signin.aws.amazon.com/console and then went to https://console.aws.amazon.com/singlesignon/ and enabled sso loginFinally tried to connect from local machine using
aws sso login
It successfully opens the browser and redirects with the code it shows a login page where it asks for a username (and then a password) I'm using the username james and trying with its password but it fails with We couldn't verify your sign-in credentials. Please try again.
Could you help me clear what am I missing? Thanks for the help in advance. Hope it's clear enough
If you want users to authenticate via an external service such as Active Directory, do not create an IAM User. Instead, users will authenticate themselves against the external identity store.
Instead, configure AWS IAM Identity Center.
From What is IAM Identity Center? (successor to AWS Single Sign-On):
The basic configuration steps are:
See: Getting started - AWS IAM Identity Center