An error occurred (MalformedPolicyDocument) when calling the CreatePolicy operation: Syntax errors in policy.
While running the command
aws iam create-policy --policy-name ApplicationTeamRolePolicy --policy-document /AppTeamRole_PolicyDocument.json
I ran into this error. An error occurred (MalformedPolicyDocument) when calling the CreatePolicy operation: Syntax errors in policy.
Then i had to resort to this. Notice the additional file://./
aws iam create-policy --policy-name ApplicationTeamRolePolicy --policy-document file://./AppTeamRole_PolicyDocument.json
Comments