From 8be9216789591554be83e7b18bc11c2d84e443f0 Mon Sep 17 00:00:00 2001 From: Theo Pack Date: Sat, 6 Oct 2018 18:30:35 +0200 Subject: [PATCH] Use a zip file to replace lambda code --- instructions/2-lambda-function.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/instructions/2-lambda-function.md b/instructions/2-lambda-function.md index 5ea0fa2..41b6599 100644 --- a/instructions/2-lambda-function.md +++ b/instructions/2-lambda-function.md @@ -44,9 +44,13 @@ In the [first step of this guide](./1-voice-user-interface.md), we built the Voi 13. Scroll down the page until you see a section called **Function code**. -11. **Open** this Lambda function [source code file](../lambda/custom/index.js), copy the contents of the file, and paste it into the index.js file found in the Lambda code editor. Don't forget to Save. +14. Upload this Lambda function [source code file](../lambda/custom). You can use the S3 link [https://s3-eu-west-1.amazonaws.com/skill-sample-nodejs-hello-world/lambda.zip +](https://s3-eu-west-1.amazonaws.com/skill-sample-nodejs-hello-world/lambda.zip +) to replace the lambda code. **Choose "Upload a file from Amazon S3"** and paste the URL in the text box. Alternatively you can build your own zip file and upload it by choosing "Upload a .zip file". Do not forget to run `npm install`, because the node_modules directory must be included in the zip file. -13. You should see the Amazon Resource Name (ARN) a unique identifier for this function in the top right corner of the page. **Copy the ARN value for this Lambda function** for use in the next section of the guide. + ![Upload zip](https://s3-eu-west-1.amazonaws.com/skill-sample-nodejs-hello-world/upload-zip.png) + +15. You should see the Amazon Resource Name (ARN) a unique identifier for this function in the top right corner of the page. **Copy the ARN value for this Lambda function** for use in the next section of the guide. ![Copy ARN](https://m.media-amazon.com/images/G/01/mobile-apps/dex/alexa/alexa-skills-kit/tutorials/quiz-game/2-12-copy-ARN._TTH_.png)