Add DynamoDB to ask-cli
The Alexa Skills Kit for Node.js includes support for creating a DynomoDB table to hold attribute values across sessions. To create the table dynamically, the Lambda function is typically given DynamoDBFullAccess permissions.
This feature is to remove the table creation code from ASK SDK Node and move it to the ASK CLI as part of the deploy command. This will allow the lambda function to have reduced permissions to insert rows, read, write, and delete.
Configuration for the table name and region would be stored in '.ask/config'
The command would be:
$ deploy --target dynamoDB
This would create the table if it does not exist and update the role associated with the lambda function to include only the permissions it needs.
Calling 'ask deploy' will also deploy to DynamoDB (if the config includes a table name). Deploy to Dynamo would occur after deploy to lambda so that the function permission could be set.