This is part of a the Alexa Skill Demo series for Normal Community High School State Farm STEM Program. To view the steps in the next session click here.

Creating The Skill Function in AWS Lambda Link to heading

  1. Log in to the AWS Management Console and navigate to AWS Lambda by searching for it in the search bar.
    lambda

  2. Click Create function.
    create function

  3. Make sure to confirm that “Author from scratch” option is selected.
    author from scratch

  4. Enter a Function Name for the function.

  5. Select Java 11 (Correto) as the Runtime

  6. Select x86_64 as the Architecture
    function page

  7. Click on Change default execution role and select Use an existing role. In the Existing Role dropdown select LabRole
    select role

  8. Click Create function.

  9. Copy the Function ARN of your AWS Lambda and save it in a location mentioned during the class period.
    copy arn

  10. Under Runtime Settings on the function page click Edit
    edit runtime

  11. Fill in the Handler information with fully qualified class name of your stream handler class (in our example this value will be com.amazon.ask.helloworld.HelloWorldStreamHandler)
    runtime settings

Clone Repository Link to heading

  1. Open Visual Studio Code click the Source Control Button.
    source control button

  2. Click Clone repository. In the text prompt provide the url: https://github.com/Skylark95/alexa-skill-demo.git
    clone repository

Build The Skill Code Link to heading

  1. Open the Visual Studio Code Command Pallete (Ctrl + Shift + P) and select Tasks: Run Build Task to build a jar file for your skill. The jar file will be output to the project directory with the name alexa-skill-demo.jar
    run build task

Upload the Jar File to your Function Link to heading

  1. Upload the JAR file produced in the previous step under Function code.
    upload jar

  2. Congratulations! You’re done for this session!

Resources Link to heading