How to use AWS cloudshell when assuming role?

0

i want to use cloudshell and login assuming a role that has external id configured. Need help on procedure. Thanks.

AWS-MM
質問済み 2年前3689ビュー
1回答
0

Hi!

For logging into CloudShell, see https://docs.aws.amazon.com/cloudshell/latest/userguide/sec-auth-identities.html for how to configure auth identities.

If you're already in CloudShell and trying to assume a different role, CloudShell has the AWS CLI installed so you can use that. See here for more information: https://awscli.amazonaws.com/v2/documentation/api/latest/index.html

aws sts assume-role --role-arn arn:aws:iam::123456789012:role/samplerole ----external-id <insert_id_here>

Keep in mind, for Assuming a Role, both the IAM Role you're trying to assume and the IAM entity you're using while using CloudShell must be configured properly (Trust Policy, permissions, etc).

jsonc
回答済み 2年前

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

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

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

関連するコンテンツ