diff --git a/.github/workflows/_build_image.yml b/.github/workflows/_build_image.yml index 5d217607..89fd652e 100644 --- a/.github/workflows/_build_image.yml +++ b/.github/workflows/_build_image.yml @@ -34,7 +34,7 @@ on: required: true DEV_DB_HOST: required: false - dev_DB_HOST: + REAL_DB_HOST: required: false jobs: @@ -82,7 +82,7 @@ jobs: done <<< "${{ inputs.build_args }}" echo "dev db host: $DEV_DB_HOST" - echo "dev db host: $dev_DB_HOST" + echo "dev db host: $REAL_DB_HOST" echo "aws_key_id: $AWS_ACCESS_KEY_ID" docker build \ diff --git a/.github/workflows/deploy_terraform.yml b/.github/workflows/deploy_terraform.yml index dbf8e2b5..2a2a40ce 100644 --- a/.github/workflows/deploy_terraform.yml +++ b/.github/workflows/deploy_terraform.yml @@ -143,7 +143,7 @@ jobs: build_args: | JUNTE=best DEV_DB_HOST=$DEV_DB_HOST - dev_DB_HOST=$dev_DB_HOST + REAL_DB_HOST=$REAL_DB_HOST AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_REGION=$AWS_REGION secrets: @@ -151,7 +151,7 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} AWS_REGION: ${{ secrets.DEV_AWS_REGION }} DEV_DB_HOST: ${{ secrets.DEV_DB_HOST }} - dev_DB_HOST: ${{ secrets.dev_DB_HOST }} + REAL_DB_HOST: ${{ secrets.dev_DB_HOST }} # ============================================================ # Deploy Condition ETL Lambda diff --git a/backend/condition/handler/Dockerfile b/backend/condition/handler/Dockerfile index 5359f71b..5cb95532 100644 --- a/backend/condition/handler/Dockerfile +++ b/backend/condition/handler/Dockerfile @@ -12,8 +12,8 @@ ENV JUNTE=${JUNTE} ARG DEV_DB_HOST ENV DEV_DB_HOST=${DEV_DB_HOST} -ARG dev_DB_HOST -ENV dev_DB_HOST=${dev_DB_HOST} +ARG REAL_DB_HOST +ENV REAL_DB_HOST=${REAL_DB_HOST} ARG AWS_ACCESS_KEY_ID ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} diff --git a/backend/condition/handler/handler.py b/backend/condition/handler/handler.py index 40a931c1..21fa6928 100644 --- a/backend/condition/handler/handler.py +++ b/backend/condition/handler/handler.py @@ -24,8 +24,8 @@ def handler(event: Mapping[str, Any], context: Any) -> None: os.getenv("DEV_DB_HOST", "empty db"), ) print( - "hello dev DB HOST:", - os.getenv("dev_DB_HOST", "empty db"), + "hello REAL DB HOST:", + os.getenv("REAL_DB_HOST", "empty db"), ) print( "hello access key",