aws-iam-identity-center-automation
aws-iam-identity-center-automation copied to clipboard
Attach customer managed policy to permission set.
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}]+ "
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