1 回答
- 最新
- 投票最多
- 评论最多
0
Turns out that what I was doing wrong was creating the DynamoDB in the dashboard.
Once I deleted it and used the Cloudformation template associated to the CodeStar project to create it as well the lambda started to work.
If someone is having the same difficulty, use the role provided above and make sure the db is also created from template.yml, like below:
...
Resources:
RawRequests:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: TimeStamp
AttributeType: S
KeySchema:
- AttributeName: TimeStamp
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TableName: RawRequests
...
Cheers
已回答 5 年前
相关内容
- AWS 官方已更新 4 个月前
- AWS 官方已更新 1 年前