diff --git a/.github/workflows/_build_image.yml b/.github/workflows/_build_image.yml index 8b73d4ca..e7f19ed5 100644 --- a/.github/workflows/_build_image.yml +++ b/.github/workflows/_build_image.yml @@ -78,6 +78,9 @@ jobs: temp=$(eval echo "$line") BUILD_ARGS="$BUILD_ARGS --build-arg $temp" done <<< "${{ inputs.build_args }}" + + echo "dev db host: $DEV_DB_HOST" + echo "aws_key_id: $AWS_ACCESS_KEY_ID" docker build \ -f ${{ inputs.dockerfile_path }} \ diff --git a/.github/workflows/deploy_terraform.yml b/.github/workflows/deploy_terraform.yml index a0cd24a3..27095b0c 100644 --- a/.github/workflows/deploy_terraform.yml +++ b/.github/workflows/deploy_terraform.yml @@ -142,7 +142,6 @@ jobs: build_context: . build_args: | JUNTE=best - DEV_DB_HOST=\$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 b31615fc..8ba8300a 100644 --- a/backend/condition/handler/Dockerfile +++ b/backend/condition/handler/Dockerfile @@ -12,6 +12,9 @@ ENV JUNTE=${JUNTE} ARG DEV_DB_HOST ENV DEV_DB_HOST=${DEV_DB_HOST} +ARG AWS_ACCESS_KEY_ID +ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} + # Set working directory (Lambda task root) WORKDIR /var/task diff --git a/backend/condition/handler/handler.py b/backend/condition/handler/handler.py index 6f835df5..7552f3de 100644 --- a/backend/condition/handler/handler.py +++ b/backend/condition/handler/handler.py @@ -23,6 +23,10 @@ def handler(event: Mapping[str, Any], context: Any) -> None: "hello DB host", os.getenv("DEV_DB_HOST", "empty db"), ) + print( + "hello access key", + os.getenv("AWS_ACCESS_KEY_ID", "empty key"), + ) # uprn_lookup = UprnLookupS3( # bucket="", key="" # ) # TODO: replace with postgres implementation