0
我无法找到网页界面上this setting为AWS:在哪里配置AWS信任关系?
您还需要编辑的角色,让 帐户(即使是相同的),以承担该角色的信任关系。
open the role that you want to assume in the console click on the "Trust Relationships" tab click on "Edit RelationShip"
是否有可能是一个屏幕截图?我正在阅读AWS Command Line Interface User Guide手册,但没有看到在哪里配置信任关系。
[email protected]:~$
[email protected]:~$ cat .aws/config
[default]
output = text
region = us-west-2
[profile thufir]
role_arn = arn:aws:iam::1234567890:user/thufir
source_profile = default
[email protected]:~$
[email protected]:~$ aws iam list-users
USERS arn:aws:iam::1234567890:user/thufir 2017-01-02T10:09:01Z / ABCDEFGIJKL thufir
[email protected]:~$
[email protected]:~$ aws s3 ls --profile thufir
An error occurred (AccessDenied) when calling the AssumeRole operation: Roles may not be assumed by root accounts.
[email protected]:~$
[email protected]:~$ export AWS_DEFAULT_PROFILE=thufir
[email protected]:~$
[email protected]:~$ aws s3 ls --profile thufir
An error occurred (AccessDenied) when calling the AssumeRole operation: Roles may not be assumed by root accounts.
[email protected]:~$