aws-iam-identity-center-automation icon indicating copy to clipboard operation
aws-iam-identity-center-automation copied to clipboard

Attach customer managed policy to permission set.

Open piotrkurylak opened this issue 2 years ago • 1 comments

Hi,

Are we able to attach customer managed policy to permission set?

"permissionSets": [
    {
        "permissionSetName": "PermissionSetName",
        "managedPolicies": ["CustomerManagedPolicy"],
        "customPolicy": ""
    }

for example like this? seems that it doesn't work since it wants to take as input AWS managed policy, got error: "Value of input 'managedPolicyArn' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):iam::aws:policy/[\p{L}\p{M}\p{Z}\p{S}\p{N}\p{P}]+ "

piotrkurylak avatar Nov 04 '23 18:11 piotrkurylak

the regular expression specified in the error message seems a bit odd no? specifically the requiring an 'aws' where the account-id would be for such an argument

e.g. value being supplied

arn:aws:iam::<redacted-account-id>:policy/some/name/space/SomePolicyName

csaxton-ls avatar Sep 26 '24 01:09 csaxton-ls