mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
get db host from secrets
This commit is contained in:
parent
10765ae0a4
commit
0fa9f8bd43
2 changed files with 6 additions and 1 deletions
1
.github/workflows/deploy_terraform.yml
vendored
1
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -141,6 +141,7 @@ jobs:
|
|||
dockerfile_path: backend/condition/handler/Dockerfile
|
||||
build_context: .
|
||||
build_args: |
|
||||
JUNTE=best
|
||||
DEV_DB_HOST=${{ secrets.DEV_DB_HOST }}
|
||||
secrets:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,11 @@ import os
|
|||
|
||||
|
||||
def handler(event: Mapping[str, Any], context: Any) -> None:
|
||||
print("hello world", os.getenv("DEV_DB_HOST", "empty"))
|
||||
print(
|
||||
"hello world",
|
||||
os.getenv("DEV_DB_HOST", "empty db"),
|
||||
os.getenv("JUNTE", "empty junte"),
|
||||
)
|
||||
# uprn_lookup = UprnLookupS3(
|
||||
# bucket="", key=""
|
||||
# ) # TODO: replace with postgres implementation
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue