Closed1
aws cli セットアップ作業メモ

aws sso login 後 aws cliが認証情報を読み込まない
$ aws sso login --profile sandbox
$ aws s3 ls
Unable to locate credentials. You can configure credentials by running "aws configure".
が発生
設定されている認証情報を確認
$ aws configure list
Name Value Type Location
---- ----- ---- --------
profile <not set> None None
access_key <not set> None None
secret_key <not set> None None
region <not set> None None
なぜ発生したかは不明だが、以下で対処可能
環境変数AWS_PROFILE
にprofile名を入れることで読み込まれるようになる
$ export AWS_PROFILE=sandbox
このスクラップは2024/04/06にクローズされました