aws sts get-caller-identity lists the root account i am unable to switch to iam user by using AWS CLI

0

aws sts get-caller-identity lists the root account i am unable to switch to iam user and i am not able to create cloudformation steps from this and perform the next steps

Shruthi
質問済み 2ヶ月前136ビュー
2回答
3

Review Configure the AWS CLI for the settings that the AWS Command Line Interface (AWS CLI) uses to interact with AWS.

Some options to select the IAM user:

  • use the AWS CLI --profile parameter (see Using named profiles )
  • set the AWS_PROFILE environment variable as the default profile

Additionally, review Security best practices in IAM and look at using temporary credentials when accessing AWS through federation with an identity provider.

profile pictureAWS
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
1

Do you have aws credentials correctly configured? Typically is a good practice to assume role https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-cli.html so that you always work with temporary credentials

profile picture
エキスパート
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前

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

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

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

関連するコンテンツ