AWS Alexa Smart Home Skill: setup the DynamoDB database – 5

Spread the love

Now It’s time to create a new Amazon DynamoDB Table that will hold the state of the virtual switch.

Amazon AWS Smart Home Skill setup DynamoDB database
Amazon AWS Smart Home Skill setup DynamoDB database

Create SampleSmartHome Table

Alexa Skill Smarthome: Create DynamoDB table with partition key only
Alexa Skill Smarthome: Create DynamoDB table with partition key only
  1. Navigate to the Amazon DynamoDB Tables Console at 
    https://console.aws.amazon.com/dynamodb/home?region=us-east-1#tables (North America)
    https://console.aws.amazon.com/dynamodb/home?region=eu-west-1#tables (Europe)
  2. Click the Create table button.
  3. For the Table name, enter SmartHomeEsp8266.
  4. For the Primary key, enter ItemId.
  5. Click the Create button to create the table.
  6. It may take a moment for the table to be created.

DynamoDB tutorial

You can check the “DynamoDB with JavaScript SDK v2 and v3 Tutorial” to get more information, here the list of specified section.

  1. DynamoDB JavaScript SDK v2 v3: prerequisite and SDK v2 v3 introduction
  2. DynamoDB JavaScript SDK v2 v3: manage tables
  3. DynamoDB JavaScript SDK v2 v3: add items with DB or DocumentClient
  4. DynamoDB JavaScript SDK v2 v3: manage items
  5. DynamoDB JavaScript SDK v2 v3: scan table data and pagination
  6. DynamoDB JavaScript SDK v2 v3: query

Thanks

  1. AWS Alexa Smart Home Skill: introduction and startup
  2. AWS Alexa Smart Home Skill: create the skill manage the security
  3. AWS Alexa Smart Home Skill: create lambda and manage security
  4. AWS Alexa Smart Home Skill: configure lambda for the skill
  5. AWS Alexa Smart Home Skill: setup the DynamoDB database
  6. AWS Alexa Smart Home Skill: load sample code and test Lambda
  7. AWS Alexa Smart Home Skill: test your skill in dev and manage log

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *