Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
This repository was archived by the owner on May 29, 2025. It is now read-only.

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

@mike-whittaker-work

Description

@mike-whittaker-work

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions