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

todo-app/final: App code does not have permission to access DB when deployed #42

Open
mike-whittaker-work opened this issue Mar 10, 2021 · 0 comments

Comments

@mike-whittaker-work
Copy link

mike-whittaker-work commented Mar 10, 2021

Running the application using the API endpoint non-locally, leads to a permission failure when running a simple "list" request.

botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the Query operation: User: arn:aws:sts::xxxxxxxx:assumed-role/portal-app-dev/portal-app-dev is not authorized to perform: dynamodb:Query on resource: arn:aws:dynamodb:eu-west-1:xxxxxxxx:table/todo-app-56e56944-c8d5-4722-9bbb-2e77c5a9a138

Adding the AmazonDynamoDBFullAccess to the permission for the Lambda role, fixed the problem.

So it looks as if the chalice deploy does not add the correct permissions to the role.

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