Skip to content

Latest commit

 

History

History

aws

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Alexa Skill Building Cookbook

AWS Services


Intro

Alexa skill developers can take advantage of the various services available within Amazon Web Services.

AWS offers a range of developer and IT services, including: database, file storage, messaging, virtual servers, and IOT connected devices.

Your skill code can call AWS services by incorporating into your project the AWS SDK for Node.js.

var AWS = require('aws-sdk');

This Node module is automatically included and available to all AWS Lambda functions.

You can further configure the AWS connection via the Config. Certain functions require the region to be set. Alexa skill developers will likely be using AWS in one of two possible regions: eu-west-1 or us-east-1

    AWS.config.update({region: 'eu-west-1'});  // us-east-1

See the AWS SDK reference docs.

Table of Contents

IAM Roles

Lambda functions execute in the context of a given IAM Role. IAM, or Identity and Access Management, manages various security controls within AWS. An IAM Role is a collection of various permissions that a process can assume to perform its work.

Your AWS Lambda function code does not need a accessKeyId or secretAccessKey to be defined as would an application external to AWS.

You setup a default role when you created your very first lambda function. This role is typically called lambda_basic_execution.

  • Lambda functions that call out to other AWS services require additional permissions. You can add permissions by attaching a Policy to your role.

Continue reading the Guide to adding IAM Policies to your role.


Back to the [Home Page](../README.md#title)