Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Update to reflect new Trigger step in wizard. #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions samples/scoreKeeper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Binary file added samples/scoreKeeper/src/ScoreKeeper.zip
Binary file not shown.