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
44f75c355a
commit
10765ae0a4
3 changed files with 5 additions and 4 deletions
2
.github/workflows/deploy_terraform.yml
vendored
2
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -141,7 +141,7 @@ jobs:
|
|||
dockerfile_path: backend/condition/handler/Dockerfile
|
||||
build_context: .
|
||||
build_args: |
|
||||
JUNTE=best3
|
||||
DEV_DB_HOST=${{ secrets.DEV_DB_HOST }}
|
||||
secrets:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,9 @@ FROM public.ecr.aws/lambda/python:3.11
|
|||
|
||||
# ARG EPC_AUTH_TOKEN
|
||||
|
||||
ARG JUNTE
|
||||
ENV JUNTE=${JUNTE}
|
||||
|
||||
ARG DEV_DB_HOST
|
||||
ENV DEV_DB_HOST=${DEV_DB_HOST}
|
||||
|
||||
# Set working directory (Lambda task root)
|
||||
WORKDIR /var/task
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import os
|
|||
|
||||
|
||||
def handler(event: Mapping[str, Any], context: Any) -> None:
|
||||
print("hello world", os.getenv("JUNTE", "empty"))
|
||||
print("hello world", os.getenv("DEV_DB_HOST", "empty"))
|
||||
# uprn_lookup = UprnLookupS3(
|
||||
# bucket="", key=""
|
||||
# ) # TODO: replace with postgres implementation
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue