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

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm