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) diff --git a/samples/scoreKeeper/src/ScoreKeeper.zip b/samples/scoreKeeper/src/ScoreKeeper.zip new file mode 100644 index 0000000..1c7d57c Binary files /dev/null and b/samples/scoreKeeper/src/ScoreKeeper.zip differ