awscli question:

0

I created a user in IAM identity center. Then I opened a terminal, and then use aws sso login to get the login session successfully. But when I ran aws ec2 describe-regions command in the same terminal, I got the error below: aws ec2 describe-regions

An error occurred (ForbiddenException) when calling the GetRoleCredentials operation: No access

My IAM identity center user has already been granted AdministratorAccess permission.

Any idea on the solution to fix this issue?

Thanks,

1回答
1

It may be linked to the configuration settings in your AWS environment. To ensure the correct setup, use the following command with your AWS CLI, specifying your SSO profile. This will help verify that your SSO profile is correctly configured and has the necessary permissions:

aws ec2 describe-regions --profile your-profile-name

💡 I suspect that the SSO configuration isn't properly set up in your terminal.


Try to configure your AWS environement:

  1. Configure the SSO Profile: aws configure sso --profile your-profile-name
  2. Login Using SSO: aws sso login --profile your-profile-name
  3. Try previous command: aws ec2 describe-regions --profile your-profile-name
profile picture
エキスパート
回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ