diff --git a/.github/workflows/deploy_terraform.yml b/.github/workflows/deploy_terraform.yml index 5bf115d7..e5b7a2e3 100644 --- a/.github/workflows/deploy_terraform.yml +++ b/.github/workflows/deploy_terraform.yml @@ -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 }} diff --git a/backend/condition/handler/Dockerfile b/backend/condition/handler/Dockerfile index ad0a11dd..970ba913 100644 --- a/backend/condition/handler/Dockerfile +++ b/backend/condition/handler/Dockerfile @@ -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 diff --git a/backend/condition/handler/handler.py b/backend/condition/handler/handler.py index ba1106c5..d689342a 100644 --- a/backend/condition/handler/handler.py +++ b/backend/condition/handler/handler.py @@ -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