单个角色中的多个信任实体

0

【以下的问题经过翻译处理】 你好,

我需要在同一个角色开启两个账户。有办法实现吗?

https://forums.aws.amazon.com/thread.jspa?threadID=224325的讨论中,这是可能的,但我不知道如何正确编写JSON。可以有人看看上面的策略并找出如何添加第二个账户吗?

我尝试了以下方法:

任何帮助都将不胜感激。谢谢!

profile picture
EXPERT
asked 6 months ago18 views
1 Answer
0

【以下的回答经过翻译处理】 你好 Micke2k、

感谢您联系我们。请尝试在 Principal 中以数组形式指定账户 ARN。

例如: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::123456789012:root", "arn:aws:iam::987654321098:root" ] }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "1555555555" } } } ] }

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions