Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
/ AlexaEcho Public archive

Simple Alexa Skill that responds to any recognized intent.

License

Notifications You must be signed in to change notification settings

LambdaSharp/AlexaEcho

Repository files navigation

Alexa Skill: Echo

Simple Alexa Skill that responds to any recognized intent.

Pre-requisites

The following tools and accounts are required to complete these instructions.

Create lambdasharp Profile

The project uses by default the lambdasharp profile. Follow these steps to setup a new profile if need be.

  1. Create a lambdasharp profile: aws configure --profile lambdasharp
  2. Configure the profile with the AWS credentials you want to use
  3. NOTE: AWS Lambda function for Alexa Skills must be hosted in us-east-1

Create LambdaSharp-AlexaEcho role for the lambda function

The AlexaEcho lambda function requires an IAM role to create and write CloudWatch logs. You can create the LambdaSharp-AlexaEcho role via the AWS Console or use the executing AWS CLI commands.

aws iam create-role --profile lambdasharp --role-name LambdaSharp-AlexaEcho --assume-role-policy-document file://assets/lambda-role-policy.json
aws iam attach-role-policy --profile lambdasharp --role-name LambdaSharp-AlexaEcho --policy-arn arn:aws:iam::aws:policy/CloudWatchLogsFullAccess

Deploy

The following steps build, deploy, and configure the lambda function for an Alexa Skill.

  1. Restore project dependencies: dotnet restore
  2. Build project: dotnet build
  3. Deploy AlexaEcho lambda function: dotnet lambda deploy-function
  4. Go to the published lambda function in the console
  5. Under Triggers
    1. Click Add Trigger
    2. Select Alexa Skills Kit
    3. Click Submit
  6. The AlexaEcho lambda function is now ready for use.

Copyright & License

  • Copyright (c) 2017 Steve Bjorg
  • MIT License

Releases

No releases published

Packages

No packages published

Languages