-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
31 lines (29 loc) · 752 Bytes
/
serverless.yml
File metadata and controls
31 lines (29 loc) · 752 Bytes
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
service: questmaster
provider:
name: aws
runtime: nodejs6.10
stage: dev
region: us-east-1
profile: default
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:DescribeTable
- dynamodb:Query
- dynamodb:Scan
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
Resource: "arn:aws:dynamodb:us-east-1:*:*"
environment:
SLACK_CLIENT_ID: ${file(./config.json):SLACK.CLIENT_ID}
SLACK_CLIENT_SECRET: ${file(./config.json):SLACK.CLIENT_SECRET}
SLACK_BOT_TOKEN: ${file(./config.json):SLACK.BOT_TOKEN}
functions:
events:
handler: functions/index.handler
events:
- http:
path: events
method: post