Skip to content

Latest commit

 

History

History
 
 

DynamoDB_Item

AwsCommunity::DynamoDB::Item

Creates an item in a DynamoDB Table:

Example

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

Development

Open two tabs in your terminal.

Run SAM

sam local start-lambda

In another tab, run cfn test:

cd resources/DynamoDB_Item
cfn test