-
Notifications
You must be signed in to change notification settings - Fork 0
/
apprunner.yaml
82 lines (82 loc) · 3.93 KB
/
apprunner.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: 1.0
runtime: python311
build:
commands:
build:
- pip3 install pipenv
- pipenv install -r requirements/prd.txt
- pipenv run pip install --no-deps .
- pipenv install -r requirements/docs.txt
- pipenv run make -C docs html
env:
- name: DJANGO_SETTINGS_MODULE
value: "biodb.settings.aws"
run:
runtime-version: 3.11
pre-run:
- pip3 install pipenv
- pipenv install -r requirements/prd.txt
command: sh scripts/prd/deploy.sh
network:
port: 8000
env: HOST_PORT
env:
- name: DB_VENDOR
value: "postgresql"
- name: DJANGO_SETTINGS_MODULE
value: "biodb.settings.aws"
secrets:
- name: EMAIL_USE_TLS
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:EMAIL_USE_TLS-KbwnER"
- name: EMAIL_USE_SSL
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:EMAIL_USE_SSL-4jjkpd"
- name: EMAIL_PORT
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:EMAIL_PORT-G0axai"
- name: EMAIL_TIMEOUT
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:EMAIL_TIMEOUT-rwHtBm"
- name: DJANGO_LOG_LEVEL
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DJANGO_LOG_LEVEL-K52Fqe"
- name: DB_BSR_HOST
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DB_BSR_HOST-Hq7aa9"
- name: DB_ADMIN_HOST
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DB_ADMIN_HOST-NTlDxu"
- name: DB_BSR_USER
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DB_BSR_USER-EjV5uT"
- name: DB_BSR_PORT
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DB_BSR_PORT-mADIze"
- name: DB_ADMIN_USER
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DB_ADMIN_USER-n4WHdp"
- name: DB_ADMIN_PORT
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DB_ADMIN_PORT-M0eK1j"
- name: DB_BSR_PASSWORD
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DB_BSR_PASSWORD-xEoYOO"
- name: DB_ADMIN_PASSWORD
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DB_ADMIN_PASSWORD-NdWuLS"
- name: SECRET_KEY
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:SECRET_KEY-V3ABiP"
- name: DJANGO_SUPERUSER_PASSWORD
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DJANGO_SUPERUSER_PASSWORD-baCj9f"
- name: N_WORKERS
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:N_WORKERS-HWBWTb"
- name: AWS_STORAGE_BUCKET_NAME
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:AWS_STORAGE_BUCKET_NAME-s1Fcyv"
- name: AWS_S3_REGION_NAME
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:AWS_S3_REGION_NAME-o1dcFN"
- name: SESSION_COOKIE_AGE
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:SESSION_COOKIE_AGE-mCp6jQ"
- name: HOST_DOMAIN
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:HOST_DOMAIN-VzvGf8"
- name: DB_BSR_PASSWORD_READONLY
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DB_BSR_PASSWORD_READONLY-qFuKvJ"
- name: DB_BSR_USER_READONLY
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:DB_BSR_USER_READONLY-wtGBhZ"
- name: EMAIL_HOST
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:EMAIL_HOST-x2J4ik"
- name: EMAIL_HOST_USER
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:EMAIL_HOST_USER-s7GAZD"
- name: EMAIL_HOST_PASSWORD
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:EMAIL_HOST_PASSWORD-kPI0AW"
- name: EMAIL_SUBJECT_PREFIX
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:EMAIL_SUBJECT_PREFIX-9oWLpA"
- name: AWS_QUERYSTRING_AUTH
value-from: "arn:aws:secretsmanager:eu-west-2:339712857727:secret:AWS_QUERYSTRING_AUTH-VxbRLV"