get db host from secrets

This commit is contained in:
Daniel Roth 2026-02-05 16:10:21 +00:00
parent 44f75c355a
commit 10765ae0a4
3 changed files with 5 additions and 4 deletions

View file

@ -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 }}

View file

@ -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

View file

@ -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