generated from snek-functions/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
51 lines (44 loc) · 1.04 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
service: iam
frameworkVersion: '3'
plugins:
- serverless-offline
- serverless-plugin-ifelse
custom:
isOffline: ${env:IS_OFFLINE, "false"}
serverlessIfElse:
- If: '"${self:custom.isOffline}" != "true"'
Exclude:
- functions.endpoint.handler
- provider.environment.CODESPACE_NAME
- provider.environment.DJANGO_DEBUG
ElseExclude:
- functions.endpoint.image
provider:
name: aws
region: eu-central-1
environment:
CODESPACE_NAME: ${env:CODESPACE_NAME, ""}
DJANGO_DEBUG: 'on'
POSTGRES_DB: app_db
POSTGRES_USER: app_user
POSTGRES_PASSWORD: changeme
POSTGRES_PORT: 5432
ENDPOINT_URL_IAM: ${env:ENDPOINT_URL_IAM, ""}
DUCKDB_DATA_PATH: '/var/duckdb'
ecr:
images:
appimage:
path: ./
functions:
endpoint:
image:
name: appimage
command:
- dist/app.handler
handler: dist/app.handler
events:
- httpApi:
path: '*'
method: '*'
# SPDX-License-Identifier: (EUPL-1.2)
# Copyright © 2019-2022 snek.at