From acc708b911a809e7b9afc7232080bfe8e7c62c7e Mon Sep 17 00:00:00 2001 From: Jeff Nunn Date: Wed, 7 Sep 2016 17:49:04 -0500 Subject: [PATCH 1/2] Update to reflect new Trigger step in wizard. --- samples/scoreKeeper/README.md | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/samples/scoreKeeper/README.md b/samples/scoreKeeper/README.md index 3f90a41..f2b8f5e 100644 --- a/samples/scoreKeeper/README.md +++ b/samples/scoreKeeper/README.md @@ -18,22 +18,21 @@ To run this example skill you need to do two things. The first is to deploy the ### AWS Lambda Setup 1. Go to the AWS Console and click on the Lambda link. Note: ensure you are in us-east or you won't be able to use Alexa with Lambda. 2. Click on the Create a Lambda Function or Get Started Now button. -3. Skip the blueprint -4. Name the Lambda Function "Score-Keeper-Example-Skill". -5. Select the runtime as Node.js -6. Go to the the src directory, select all files and then create a zip file, make sure the zip file does not contain the src directory itself, otherwise Lambda function will not work. -7. Select Code entry type as "Upload a .ZIP file" and then upload the .zip file to the Lambda -8. Keep the Handler as index.handler (this refers to the main js file in the zip). -9. Select "Create a custom role" to create a role with lambda linked to DynamoDB. - 9a. In a new browser tab go to Services / Security & Identity / IAM - 9b. On the left tab select "Roles" and click the "Create New Role" - 9c. Enter role name "lambda-Dynamo", in the next screen select "AWS Lambda" under AWS Services Roles. - 9d. In the searchbar filter for Dynamo and select AmazonDynamoDBFullAccess and create role. -10. Return to the Lambda Management Console and under Role select "Choose an existing role" and select the new role you created: "lambda-Dynamo". Leave the Advanced settings as the defaults. -11. Click "Next" and review the settings then click "Create Function" -12. Click the "Triggers" tab and select "Add trigger" -13. Set the Trigger type as Alexa Skills kit and Enable it now. Click Submit. -14. Copy the ARN from the top right to be used later in the Alexa Skill Setup. +3. Skip the blueprint. +4. Configure a trigger by clicking in the dotted box and selecting **Alexa Skills Kit**. +5. Name the Lambda Function "Score-Keeper-Example-Skill". +6. Select the runtime as Node.js +7. Go to the the src directory, select all files and then create a zip file, make sure the zip file does not contain the src directory itself, otherwise Lambda function will not work. +8. Select Code entry type as "Upload a .ZIP file" and then upload the .zip file to the Lambda +9. Keep the Handler as index.handler (this refers to the main js file in the zip). +10. Select "Create a custom role" to create a role with lambda linked to DynamoDB. + - 10a. In a new browser tab go to Services / Security & Identity / IAM + - 10b. On the left tab select "Roles" and click the "Create New Role" + - 10c. Enter role name "lambda-Dynamo", in the next screen select "AWS Lambda" under AWS Services Roles. + - 10d. In the search bar filter for DynamoDB and select `AmazonDynamoDBFullAccess` and create role. +11. Return to the Lambda Management Console and under Role select "Choose an existing role" and select the new role you created: "lambda-Dynamo". Leave the Advanced settings as the defaults. +12. Click "Next" and review the settings then click "Create Function" +13. Copy the ARN from the top right to be used later in the Alexa Skill Setup. ### AWS DynamoDB Setup 1. Go to the AWS Console and click on [DynamoDB link](https://console.aws.amazon.com/dynamodb). Note: ensure you are in us-east (same as your Lambda) From dd7af00888ea978a615f854145473ea58ee8edc6 Mon Sep 17 00:00:00 2001 From: Jeff Nunn Date: Wed, 7 Sep 2016 18:02:41 -0500 Subject: [PATCH 2/2] Updated to reflect new DynamoDB create table wizard. --- samples/scoreKeeper/src/ScoreKeeper.zip | Bin 0 -> 9788 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 samples/scoreKeeper/src/ScoreKeeper.zip diff --git a/samples/scoreKeeper/src/ScoreKeeper.zip b/samples/scoreKeeper/src/ScoreKeeper.zip new file mode 100644 index 0000000000000000000000000000000000000000..1c7d57c91df106b741b02042465f694f2ba788fa GIT binary patch literal 9788 zcma)?RZv~swyhWL?(Xic!DZnZG!Wd~J$P`}1q6rS?(RVY1b26L=d$m8$-nnGb$87g zRdc+2Z=?0rdvD5e5RjMv000&s5=|pB6-iuk1`Po8;sF3i078JMjj4yBnzf~k4YQT= zXLUFLL{sXdrZs3%)71k300s&Ab3y_+<_+OEt0m{W%#GT4tZCyBW+GjfAnzSN2s0~F z3~F_gQcW;p&q90ha_*q%<8`g(5$AkHuxe&MN9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