-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
70 lines (64 loc) · 2.13 KB
/
serverless.yml
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
service: dorapi-skill
variablesResolutionMode: 20210326
provider:
name: aws
runtime: python3.8
stage: dev
region: ap-northeast-1
lambdaHashingVersion: 20201221
functions:
dorapi:
handler: lambda_handler.handler
events:
- alexaSkill: ${file(./config/env_${self:provider.stage}.json):ALEXA_SKILL_ID}
plugins:
- serverless-alexa-skills
- serverless-python-requirements
- serverless-dotenv-plugin
custom:
pythonRequirements:
dockerizePip: false
alexa:
vendorId: ${file(./config/env_${self:provider.stage}.json):AMAZON_VENDOR_ID}
clientId: ${file(./config/env_${self:provider.stage}.json):AMAZON_CLIENT_ID}
clientSecret: ${file(./config/env_${self:provider.stage}.json):AMAZON_CLIENT_SECRET}
localServerPort: 9091
skills:
- id: ${file(./config/env_${self:provider.stage}.json):ALEXA_SKILL_ID}
manifest:
publishingInformation:
locales:
ja-JP:
name: dorapi
apis:
custom:
endpoint:
uri: arn:aws:lambda:ap-northeast-1:${file(./config/env_${self:provider.stage}.json):AWS_ACCOUNT}:function:dorapi-skill-${self:provider.stage}-dorapi
manifestVersion: '1.0'
models:
ja-JP:
interactionModel:
languageModel:
invocationName: ドラえもん
intents:
- name: DorapiIntent
slots:
- name: GadgetKeyword
type: AMAZON.SearchQuery
samples:
- "{GadgetKeyword} 道具"
- "ドラえもん {GadgetKeyword}"
- "ドラ {GadgetKeyword}"
- "ドラちゃん {GadgetKeyword}"
- "ドラカス {GadgetKeyword}"
- "ドラカス畜生 {GadgetKeyword}"
- name: AMAZON.HelpIntent
samples:
- name: AMAZON.CancelIntent
samples:
- name: AMAZON.StopIntent
samples:
package:
exclude:
- node_modules/**
- skill_env/**