-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.sample.yml
36 lines (36 loc) · 1.13 KB
/
serverless.sample.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
service: utakata
plugins:
- serverless-plugin-tracing
provider:
name: aws
runtime: go1.x
stage: dev
region: ap-northeast-1
tracing: true # X-Ray
iamRoleStatements:
- Effect: Allow
Action:
- xray:PutTraceSegments # X-Ray
- xray:PutTelemetryRecords # X-Ray
Resource: "*"
environment:
UTAKATA_ICAL_URLS: "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
UTAKATA_ICAL_USERS: "seike460"
UTAKATA_ICAL_PASS: "password"
UTAKATA_SLACK_TOKEN: "XxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX"
UTAKATA_SLACK_CHANNEL: "@seike460"
FAULTLINE_NOTIFY_SLACK_ENDPOINT: 'https://hooks.slack.com/services/XxxxxxxxX/Xxxxxxxxxxxxxx/XxxxxxxxxxxxxxxxxxX'
FAULTLINE_NOTIFY_SLACK_CHANNEL: '#seike460'
FAULTLINE_MASTERKEY: 'XxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX'
FAULTLINE_ENDPOINT: 'https://XxxxxxxxxX.execute-api.us-east-1.amazonaws.com/dev'
# plugins:
# - serverless-localstack
# custom:
# localstack:
# endpoint: localstack_endpoints.json
functions:
utakata:
handler: handlers/utakata.handler
reservedConcurrency: 1
events:
- schedule: cron(*/5 * * * ? *)