using_lambda
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
using_lambda [2016/12/29 13:30] – tbrodeur | using_lambda [2016/12/29 17:21] (current) – tbrodeur | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <fc # | + | <fc # |
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
+ | |||
+ | <fs small> | ||
+ | **Author:** Tristan Brodeur | ||
+ | |||
+ | **Email:** brodeurtristan@gmail.com | ||
+ | |||
+ | **Date:** Last modified on 12/29/16 | ||
+ | |||
+ | **Keywords: | ||
+ | |||
+ | <color # | ||
+ | </ | ||
+ | |||
+ | <fs medium> | ||
+ | |||
+ | AWS Lambda is a service that executes code in response to events, thus saving the developer the trouble of maintaining a server. Lambda also links seamlessly to the Alexa Skills Kit, which makes it an excellent tool for running the code for Alexa Skills. | ||
+ | |||
+ | <color # | ||
+ | </ | ||
-To use lambda, you must first create an [[https:// | -To use lambda, you must first create an [[https:// | ||
Line 12: | Line 32: | ||
-Once you click "Get started now" in the next screen, a list of blueprints will follow. Select "Blank Function" | -Once you click "Get started now" in the next screen, a list of blueprints will follow. Select "Blank Function" | ||
- | <color # | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
</ | </ | ||
{{: | {{: | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
-In the next screen, you must link your lambda function to the Alexa Skills Kit. Click the blank box and choose "Alexa Skills Kit" from the list of drop-downs. | -In the next screen, you must link your lambda function to the Alexa Skills Kit. Click the blank box and choose "Alexa Skills Kit" from the list of drop-downs. | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
{{: | {{: | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
-The next step is to configure your function. In the name field, enter a descriptive name for the function. This will, however, not be the name that users will invoke to call your function. Next, enter a description for your function. Then select the server language you will choose to run your code. | -The next step is to configure your function. In the name field, enter a descriptive name for the function. This will, however, not be the name that users will invoke to call your function. Next, enter a description for your function. Then select the server language you will choose to run your code. | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
{{: | {{: | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
-Scroll down and configure the rest of the options before entering in the code. | -Scroll down and configure the rest of the options before entering in the code. | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
{{: | {{: | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
-Handler specifies the runtime language function that Lambda should | -Handler specifies the runtime language function that Lambda should | ||
Line 46: | Line 73: | ||
name> | name> | ||
- | -<file name> can be replaced with the name of your file if uploaded via zip, or leave it as is if using the inline editor.< | + | -<file name> can be replaced with the name of your file if uploaded via zip, or leave it as is if using the inline editor.< |
+ | |||
+ | -//If you are following the "Hello World" | ||
-Role specifies the IAM security role to use when running the Lambda | -Role specifies the IAM security role to use when running the Lambda | ||
Line 57: | Line 86: | ||
Leave the other drop-down as is and click allow. | Leave the other drop-down as is and click allow. | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
{{: | {{: | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
-When defining a Lambda function, you can either write your code in | -When defining a Lambda function, you can either write your code in | ||
Line 67: | Line 98: | ||
functions, or if you need to split your code into multiple files (for | functions, or if you need to split your code into multiple files (for | ||
example if you use libraries), the zip file approach is the way to go. | example if you use libraries), the zip file approach is the way to go. | ||
+ | |||
+ | -//If you are following the "Hello World" tutorial, grab the code from [[echo_hello_world|this page]] and paste it in the inline editor// | ||
-Once the code is added, scroll down to the end of the page and click Next to save the | -Once the code is added, scroll down to the end of the page and click Next to save the | ||
Line 78: | Line 111: | ||
check to make sure the trigger is set to Alexa Skills Kit in the Triggers tab. | check to make sure the trigger is set to Alexa Skills Kit in the Triggers tab. | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
{{: | {{: | ||
- | ---- | + | <color #22b14c>----------------------------------------------------------------------------------------------------------------------------- |
+ | </ | ||
-If its not set, click "Add trigger" | -If its not set, click "Add trigger" | ||
+ | |||
+ | -//If you are following the "Hello World" tutorial, you can continue [[echo_hello_world|here]].// |
using_lambda.1483047036.txt.gz · Last modified: by tbrodeur