Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EKS ami policy fails legacy parsing with MalformedPolicyDocument error #3

Open
mathematiguy opened this issue Jul 11, 2022 · 0 comments

Comments

@mathematiguy
Copy link

Hi there,

I've followed the instructions in installation.md up to the Create IAM Policy step. Unfortunately I get the following error:

~/torchserve-eks$ aws iam create-policy --policy-name eks_ami_policy \
    --policy-document file://eks_ami_policy.json
> 
An error occurred (MalformedPolicyDocument) when calling the CreatePolicy operation: The policy failed legacy parsing

The error seems to suggest the eks_ami_policy.json (templated here: https://github.com/aws-samples/torchserve-eks/blob/master/template/eks_ami_policy.json) generated by pt_serve_util.sh is faulty.

Looking at the eks_ami_policy.json generated by pt_serve_util.sh, it appears to match the template exactly. So I'm not sure how it is that has failed legacy parsing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant