ihassin / 10-alexa-dynamodb-datastore-example-skill

Alexa DynamoDB Skill Template

Home Page:https://dabble.link/89

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'
        }
    ]
}

About

Alexa DynamoDB Skill Template

https://dabble.link/89

License:MIT License


Languages

Language:JavaScript 88.2%Language:Shell 11.8%