1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Hello.
If you are an IAM Identity Center user, you cannot use it unless you also set "aws_session_token" in addition to the access key and secret access key.
So, please try setting the "~/.aws/credentials" file as follows.
[yyyyyyyy_AdministratorAccess]
aws_access_key_id=yyyyyyyyyyyy
aws_secret_access_key=yyyyyyyyyyy
aws_session_token=yyyyyyyyyyyyy.....
Or you can use it by running the command to set environment variables as shown below.
export AWS_ACCESS_KEY_ID="yyyyyyyyyyyy"
export AWS_SECRET_ACCESS_KEY="yyyyyyyyyyyy"
export AWS_SESSION_TOKEN="yyyyyyyyyyyyy....."
One way is to use the "aws configure sso" command.
https://docs.aws.amazon.com/cli/latest/userguide/sso-configure-profile-token.html#sso-configure-profile-token-auto-sso
Contenus pertinents
- demandé il y a un an
- Réponse acceptéedemandé il y a un an
- demandé il y a 7 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 9 mois
I appreciate it