-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
75 lines (69 loc) · 2.38 KB
/
serverless.yml
File metadata and controls
75 lines (69 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
service:
name: my3dprinter
plugins:
- serverless-webpack
- serverless-alexa-skills
provider:
name: aws
runtime: nodejs8.10
stage: dev
profile: ${file(env.yml):PROFILE}
environment:
DB_HOST: ${file(env.yml):DB_HOST}
DB_PORT: ${file(env.yml):DB_PORT}
DB_USER: ${file(env.yml):DB_USER}
DB_PASSWORD: ${file(env.yml):DB_PASSWORD}
DB_DATABASE: ${file(env.yml):DB_DATABASE}
custom:
alexa:
# Step 1: Run `sls alexa auth` to authenticate
# Step 2: Run `sls alexa create --name "My 3D Printer" --locale en-US --type custom` to create a new skill
skills:
# Step 3: Paste the skill id returned by the create command here:
- id: ${file(env.yml):SKILL_ID}
manifest:
publishingInformation:
locales:
en-US:
name: My 3D Printer
apis:
custom:
endpoint:
# Step 4: Do your first deploy of your Serverless stack
# Step 5: Paste the ARN of your lambda here:
uri: ${file(env.yml):ENDPOINT_URI}
# Step 6: Run `sls alexa update` to deploy the skill manifest
# Step 7: Run `sls alexa build` to build the skill interaction model
# Step 8: Enable the skill in the Alexa app to start testing.
manifestVersion: '1.0'
models:
en-US:
interactionModel:
languageModel:
invocationName: my three d printer
intents:
- name: OctoprintTestIntent
samples:
- 'test print'
- name: PrintThingIntent
slots:
- name: thingQuery
type: AMAZON.SearchQuery
samples:
- 'Print {thingQuery}'
- name: SearchThingIntent
slots:
- name: thingQuery
type: AMAZON.SearchQuery
samples:
- 'Find {thingQuery}'
- name: NewestThingsIntent
samples:
- 'Search Newest Things'
- 'Search New Things'
- 'New Things'
functions:
alexa:
handler: handler.alexa
events:
- alexaSkill: ${self:custom.alexa.skills.0.id}