-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
55 lines (47 loc) · 1.31 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
service: tamra
frameworkVersion: "3"
provider:
name: aws
runtime: provided.al2
architecture: arm64
region: eu-central-1
stage: ${opt:stage, 'dev'}
stackName: ${self:custom.SERVICE_NAME}-${self:provider.stage}
stackTags:
Environment: ${self:provider.stage}
ProductName: ${self:custom.SERVICE_NAME}-${self:provider.stage}
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:PutObject"
Resource: "arn:aws:s3:::${self:custom.RESTAURANT_LOGOS_BUCKET.${self:provider.stage}}/*"
custom:
SERVICE_NAME: tamra
LOG_LEVEL:
dev: debug
prod: info
RESTAURANT_LOGOS_BUCKET:
dev: dev-tamra-restaurant-logos
prod: prod-tamra-restaurant-logos
package:
individually: true
exclude:
- ./**
include:
- ./bin/**
functions:
tamra:
handler: bootstrap
package:
artifact: bin/bootstrap.zip
environment:
DB_CONNECTION_STRING: ${ssm:/tamra/db_connection_string_${self:provider.stage}}
FIREBASE_CONFIG_JSON: ${ssm:/tamra/firebase_config_json_2}
LOG_LEVEL: ${self:custom.LOG_LEVEL.${self:provider.stage}}
RESTAURANT_LOGOS_BUCKET: ${self:custom.RESTAURANT_LOGOS_BUCKET.${self:provider.stage}}
STAGE: ${self:provider.stage}
events:
- http:
path: /{proxy+}
method: any
cors: true