Creates an item in a DynamoDB Table:
Resources:
Table:
Type: AWS::DynamoDB::Table
...
Item:
Type: AwsCommunity::DynamoDB::Item
Properties:
TableName: !Ref Table
Item:
title:
S: Workshop 101
Keys:
- AttributeName: pk
AttributeType: S
AttributeValue: value
Open two tabs in your terminal.
Run SAM
sam local start-lambda
In another tab, run cfn test:
cd resources/DynamoDB_Item
cfn test