Skip to content

Files

Latest commit

author
Rob McCauley
Jul 19, 2017
bd5da03 · Jul 19, 2017

History

History
This branch is 119 commits ahead of jaywalker76/alexa-cookbook:master.

aws

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 16, 2017
Jul 19, 2017
Mar 16, 2017
Mar 31, 2017
Mar 31, 2017
Mar 7, 2017
Mar 31, 2017

README.md

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: 'us-east-1'});  // eu-west-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)