Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Table Parameter Overrides Not Used When Creating DynamoDB Table

未关闭
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
aws, python

调研方向

首先检查包含 ActivitiesTable、其 Table 参数和 ListActivitiesFunctionRole 的 SAM 模板,然后使用非默认表名通过 sam build 和 sam deploy --guided 复现。完成标准是:已部署的函数可以扫描该表,并且端点显示空屏幕,而不是抛出 Access denied exception。

由索引模型根据 Issue 内容生成。

描述

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. sam build
  2. sam deploy --guided
  3. invoke URL from Curl or browser, value found on GET resource in API Gateway console
  4. 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

主要语言
Python
星标
105
派生
64
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。