Simple Alexa Skill that responds to any recognized intent.
The following tools and accounts are required to complete these instructions.
The project uses by default the lambdasharp
profile. Follow these steps to setup a new profile if need be.
- Create a
lambdasharp
profile:aws configure --profile lambdasharp
- Configure the profile with the AWS credentials you want to use
- NOTE: AWS Lambda function for Alexa Skills must be hosted in
us-east-1
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
The following steps build, deploy, and configure the lambda function for an Alexa Skill.
- Restore project dependencies:
dotnet restore
- Build project:
dotnet build
- Deploy AlexaEcho lambda function:
dotnet lambda deploy-function
- Go to the published lambda function in the console
- Under
Triggers
- Click
Add Trigger
- Select
Alexa Skills Kit
- Click
Submit
- Click
- The
AlexaEcho
lambda function is now ready for use.
- Copyright (c) 2017 Steve Bjorg
- MIT License