Prerequisites:
- Install the serverless framework and yarn:
npm install -g serverless
npm install -g yarn
- Run
yarn
(ornpm install
) to restore packages
Configure & deploy the skill:
- Create a file named
.secret.yml
with the following structure:vendorId: XXXXXXXXXXXXXX skillId: amzn1.ask.skill.xxxx-xxxx-xxxx-xxxx-xxxx lambdaArn: arn:aws:lambda:[REGION]:[ACCOUNT_ID]:function:[LAMBDA_ID]
- Update the
vendorId
with the one for your account, can be found here: https://developer.amazon.com/mycid.html - Run
sls alexa auth
and follow instructions in your browser - Run
sls alexa create --name "Guessing Game" --locale en-GB --type custom
to create a new skill - Update the
skillId
for the newly created skill (it will be printed in the console). - Run
sls deploy
to deploy the lambda - Update the
lambdaArn
once the deploy has finished - find the ARN of the lambda in your AWS console. - Run
sls alexa update
to deploy the skill manifest. - Run
sls alexa build
to deploy the skill interaction model.