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

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type