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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠