-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
94 lines (88 loc) · 2.52 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
service: woodhouse-assistant
provider:
name: aws
runtime: nodejs8.10
region: us-east-1
iamRoleStatements:
- Effect: "Allow"
Action:
- "dynamodb:PutItem"
Resource: { "Fn::GetAtt": ["woodhouseTable", "Arn" ] }
custom:
alexa:
vendorId: ${env:AMAZON_VENDOR_ID}
clientId: ${env:AMAZON_CLIENT_ID}
clientSecret: ${env:AMAZON_CLIENT_SECRET}
skills:
- id: ${env:ALEXA_SKILL_ID}
manifest:
apis:
custom:
endpoint:
uri: >-
{ "Fn::GetAtt": ["woodhouse", "Arn" ] }
manifestVersion: '1.0'
permissions: []
privacyAndCompliance:
allowsPurchases: false
usesPersonalInfo: false
isChildDirected: false
isExportCompliant: true
publishingInformation:
locales:
en-US:
name: woodhouse
summary: woodhouse
description: Woodhouse is a skill that finds your favourite sites and opens them for you.
examplePhrases:
- Alexa ask woodhouse to find {query}
- Alexa ask woodhouse to open {query}
- help
isAvailableWorldwide: true
testingInstructions: NA
category: BUSINESS_AND_FINANCE
distributionCountries: []
models:
en-US:
interactionModel:
languageModel:
invocationName: woodhouse
intents:
- name: OpenIntent
slots:
- name: query
type: AMAZON.SearchQuery
samples:
- 'I have {First} and {Second}'
- 'show {query}'
- 'show me {query}'
- 'get {query}'
- 'get me {query}'
- 'load up {query}'
- 'find {query}'
- 'find me {query}'
- 'search {query}'
- 'search for {query}'
package:
# include:
# - include-me.js
# - include-me-dir/**
exclude:
- client/**
# - resources/**
functions:
woodhouse:
handler: handler.handler
resources:
- ${file(resources/cognito-identity-pool.yml)}
- ${file(resources/dynamo.yml)}
Outputs:
woodhouseTable:
Value:
Ref: TableName
IdentityPoolId:
Value:
Ref: CognitoIdentityPool
plugins:
- serverless-alexa-skills
- serverless-dotenv-plugin