404 status error: Not supported policy (but duplicated policy works)

0

**In IAM Identity Center, trying to assign a group to an account using a permission set... ** We have policies that give us 404 status error: Not supported policy when trying to assign the group, but if we duplicate the policy (copying the JSON, clicking create policy, setting a name, and then pasting the JSON) they attach fine.

It is not feasible for us to duplicate all our policies, so how can we resolve this error with the existing policies? And what could be causing the error, considering there are no issues with the content of the policy?

Tom T
已提问 4 个月前837 查看次数
2 回答
1

Hello.

Is the IAM policy you are trying to use a customer managed policy?
In that case, you will not be able to configure the permission set unless the AWS account you are trying to link the permission set to has the same IAM policy.
In other words, the possible cause of the error is that the AWS account to which you are trying to associate the permission set does not have the same IAM policy.
https://docs.aws.amazon.com/singlesignon/latest/userguide/howtocmp.html

Before you assign your permission set with IAM policies, you must prepare your member account. The name of an IAM policy in your member account must be a case-sensitive match to name of the policy in your management account. IAM Identity Center fails to assign the permission set if the policy doesn't exist in your member account.

The permissions that the policy grants don't have to be an exact match between accounts.

profile picture
专家
已回答 4 个月前
0

Hi Riku,

Thank you for your answer, but the policy does exist in the member account. It is a customer managed policy. We get a 404 error with the ARN for the policy in the member account, but if we duplicate the exact policy JSON and attached new one it works. However, this is not a viable solution for us because we manager our policies through Terraform. Any thoughts?

Thanks,

Tom T
已回答 3 个月前

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

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

回答问题的准则

相关内容