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

api_gateway_policy_file no longer works - error #2065

Open
jacksimpsoncartesian opened this issue Aug 3, 2023 · 0 comments
Open

api_gateway_policy_file no longer works - error #2065

jacksimpsoncartesian opened this issue Aug 3, 2023 · 0 comments

Comments

@jacksimpsoncartesian
Copy link

I recently switched to a new AWS account and took a Chalice project with me that was working perfectly - I was using 'api_gateway_policy_file' to point to a file in the '.chalice' directory.

Now with the new AWS login, when I try to deploy, it fails with this error:

Invalid policy document. Please check the policy syntax and ensure that Principals are valid.

I manually created a policy and role in the console, pointed the Chalice app to that, and it works fine, however if I copy the valid json into a file, the deploy fails with that error.

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