10-alexa-dynamodb-datastore-example-skill icon indicating copy to clipboard operation
10-alexa-dynamodb-datastore-example-skill copied to clipboard

Alexa DynamoDB Skill Template

DynamoDB Starter Alexa Template

This is a simple template that shows use of DynamoDB with Alexa. This template uses the Alexa Skills Kit for Node.js version 2.0 and is designed to be used with the Alexa Skills Kit CLI.

Instructions to execute this template

  • Provide DynamoDB execution permission to the Lambda.
  • Create a DynamoDB table with name dynamodb-starter and schema, userId as a Partition Key and movieTitle as a sort key.
{
    AttributeDefinitions: [
        {
            AttributeName: 'userId',
            AttributeType: 'S'
        },
        {
            AttributeName: 'movieTitle',
            AttributeType: 'S'
        }
    ],
    KeySchema: [
        {
            AttributeName: 'userId',
            KeyType: 'HASH'
        },
        {
            AttributeName: 'movieTitle',
            KeyType: 'RANGE'
        }
    ]
}