Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Call an AWS Serverless Service from an Alexa Skill

This is a basic AWS serverless service example. It uses Lambda, APIG, and S3 to create a fact-vending service. In step 3, you will create an Alexa-Hosted Fact skill and call your REST service from there. Going through this tutorial should be within the free tier limits of these services. You can use this example as a starting point for other serverless services and for calling REST APIs from an Alexa skill.


This library is licensed under the Amazon Software License.

Setup Instructions

Each subfolder (Section 1-3) has the starting code for that section if you want to jump ahead. If you are looking for the end result, See: [Final].


  1. You will need an AWS Developer Account.
  2. You will need an Amazon Developer Account for the Alexa portion.

Table of Contents

Section 1: Set up Basic Infrastructure

In this section, you learn to will use Cloudformation and S3 to set up a serverless microservice which vends a random fact about a topic of your choice. You will populate this with your own set of facts using the Lambda console to edit Node.js code.

Section 2: Use S3 to Store Your Facts

In this section, you will move your data out of the API Gateway lambda and into S3 to decouple the data from your code. You will learn more about cloudformation and IAM roles.

Section 3: Set up an Alexa Skill

In this section, you will set up an Alexa-Hosted Fact skill. You will learn some basics of Alexa skill building and how to make a REST call from Node.js.

Get Started


No description, website, or topics provided.



Code of conduct





No packages published