Table Parameter Overrides Not Used When Creating DynamoDB Table
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, python
- Domain
- authorization, backend, cloud, databases
Research direction
Start by inspecting the SAM template containing ActivitiesTable, its Table parameter, and ListActivitiesFunctionRole, then reproduce with sam build and sam deploy --guided using a nondefault table name. Done means the deployed function can scan that table and the endpoint shows an empty screen instead of an Access denied exception.
Written by the indexing model from the issue text.
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- sam build
- sam deploy --guided
- invoke URL from Curl or browser, value found on GET resource in API Gateway console
- when prompted for table name, use another value like FBActivities or CodeActivities, rather than default of Activities
You will see "internal server error", and CloudWatch
/aws/lambda/crud-sam-app-ListActivitiesFunction-kVMgyUAS17TY
"Access denied exception when calling Scan operation." ListActivitiesFunctionRole.
arn:aws:dynamodb:us-east-1:654654165497:table/FBActivities
Expected behavior
Should show empty screen
Desktop (please complete the following information):
Windows 11
Additional context
I changed the last line below to make the fix
ActivitiesTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
-
AttributeName: "id"
AttributeType: "S"
-
AttributeName: "date"
AttributeType: "S"
KeySchema:
-
AttributeName: "id"
KeyType: "HASH"
-
AttributeName: "date"
KeyType: "RANGE"
ProvisionedThroughput:
ReadCapacityUnits: "1"
WriteCapacityUnits: "1"
TableName: !Ref Table
- Dominant language
- Python
- Stars
- 105
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
instance instance add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
searxng/searx-instances#941 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
FluidNumerics/fluid-walk-blocker#89 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day