Errors attaching policies to the role

0

Hi, I am trying to attach a policy to a role. Specifically, I'm trying to attach SNS to a role and this is the error message I get.

"Policy AmazonSNSFullAccess not added. Cannot perform the operation on the protected role 'AWSReservedSSO_Developer-permission-set' - this role is only modifiable by AWS"

I also tried creating a new role and attaching that to the user's account but it didn't seem to give them access to SNS even though that was part of the policy.

I would prefer to be able to accomplish this as I have previously with other services by attaching the policy directly to the role.

Any help appreciated.

TAAli
已提问 2 年前5110 查看次数
1 回答
0
已接受的回答

The AWSReservedSSO_* roles are protected inside individual AWS accounts, and can only be modified by updating the Permission Set in AWS Single Sign On (which will then propagate it out to the accounts). You can find some guidance around Permission Sets in the SSO documentation. You will need to log in to your Management Account to access AWS SSO (assuming you have not already taken advantage of the recent launch to support delegation for SSO).

If that isn't possible for you, then you may be able to achieve it by (as you started) creating a new Role which has the required permissions, and then allowing the AWSReservedSSO_Developer-permission-set Role to assume it (if it is allowed to!). The user would then log in to the AWS account using the AWSReservedSSO_Developer-permission-set role as normal, and then Switch Role to the one you created in order to perform SNS operations as needed. Note that when they switch role, the permissions of the role they assume replace (temporarily) the permissions from the original role, so you will need to include any other permissions they need in the 2nd role. See the docs for how to assume a role in the Console, or with the CLI.

profile pictureAWS
专家
James_S
已回答 2 年前
  • Thank you, I managed to add the SNS policy from the SSO permissions from the management account and it seems to have accepted the policy now. Thanks for your response!

  • How can i modify the trust policy on such roles? I cannot see any trust policy in permission set.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则