Closed shubhamagarwal92 closed 5 years ago
Hi,
I have been following this blog to spawn multiple spot instances. However, while, creating the policy using the command below,
aws iam create-policy \ --policy-name ec2-permissions-dl-training \ --policy-document ec2-permissions-dl-training.json
I am facing the error:
An error occurred (MalformedPolicyDocument) when calling the CreatePolicy operation: Syntax errors in policy.
Could you suggest what could be the issue with this policy document that is used.
Nevermind, I found the solution.
There has to be file:// before the document name.
file://
Hi,
I have been following this blog to spawn multiple spot instances. However, while, creating the policy using the command below,
I am facing the error:
Could you suggest what could be the issue with this policy document that is used.