-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
59 lines (54 loc) · 1.45 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
service: lmhd-api
frameworkVersion: ">=1.28.0 <2.0.0"
provider:
name: aws
runtime: go1.x
package:
exclude:
- ./**
include:
- ./bin/**
functions:
hello:
handler: bin/hello
events:
- http:
path: /{path}
method: get
request:
parameters:
paths:
path: true
v1:
handler: bin/v1
environment:
PLURALKIT_API_TOKEN: ${env:PLURALKIT_API_TOKEN}
PLURALKIT_SYSTEM_ID: ${env:PLURALKIT_SYSTEM_ID}
# TODO: Test/Prod specific env vars for Vault AppRole
VAULT_APPROLE_ROLE_ID: ${env:VAULT_APPROLE_ROLE_ID}
VAULT_APPROLE_SECRET_ID: ${env:VAULT_APPROLE_SECRET_ID}
VAULT_SECRET_SLACK_TOKENS: ${env:VAULT_SECRET_SLACK_TOKENS}
VAULT_SECRET_SLACK_MEMBERS: ${env:VAULT_SECRET_SLACK_MEMBERS}
VAULT_SECRET_SLACK_USER_IDS: ${env:VAULT_SECRET_SLACK_USER_IDS}
VAULT_ADDR: ${env:VAULT_ADDR}
events:
- http:
path: /v1/{proxy+}
method: any
request:
parameters:
paths:
proxy: true
plugins:
- serverless-domain-manager
- serverless-dotenv-plugin
custom:
domain:
dev: api.test.lmhd.me
prod: api.lmhd.me
customDomain:
domainName: ${self:custom.domain.${opt:stage, self:provider.stage}}
autoDomain: true
basePath: ""
stage: ${opt:stage, self:provider.stage}
createRoute53Record: true