问题描述
我需要在主要帐户的次要帐户中担任临时角色。对于主要帐户,我已经具有一个角色,该角色具有临时角色在次要角色中的假定角色策略。但是当我执行命令时
aws sts assume-role --role-arn ${primaryRoleArn} --role-session-name ${awsProfile}
我收到此错误
An error occurred (AccessDenied) when calling the AssumeRole operation: User: arn:aws:iam::xxxxxxx:user/primary is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::secondaryAccount:role/secondary_role
我做错了什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)