1 Answer
- Newest
- Most votes
- Most comments
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
answered 5 years ago
Relevant content
- asked a year ago
- asked 5 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- How can I use a Lambda function to automatically start an AWS Glue job when a crawler run completes?AWS OFFICIALUpdated 2 years ago