From 8c60f95219446e02c3f7790ed22286a1d23e3fba Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 5 Mar 2026 15:26:04 +0000 Subject: [PATCH] ensure db host, name and port are passed through as TF_VARs --- .github/workflows/_deploy_lambda.yml | 12 ++++++++++++ .github/workflows/deploy_terraform.yml | 3 +++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/_deploy_lambda.yml b/.github/workflows/_deploy_lambda.yml index c3deb99a..ce1a0e77 100644 --- a/.github/workflows/_deploy_lambda.yml +++ b/.github/workflows/_deploy_lambda.yml @@ -42,6 +42,12 @@ on: required: true AWS_REGION: required: true + TF_VAR_db_host: + required: false + TF_VAR_db_name: + required: false + TF_VAR_db_port: + required: false TF_VAR_api_key: required: false TF_VAR_secret_key: @@ -101,6 +107,9 @@ jobs: - name: Terraform Plan working-directory: ${{ inputs.lambda_path }} env: + TF_VAR_db_host: ${{ secrets.TF_VAR_db_host }} + TF_VAR_db_name: ${{ secrets.TF_VAR_db_name }} + TF_VAR_db_port: ${{ secrets.TF_VAR_db_port }} TF_VAR_api_key: ${{ secrets.TF_VAR_api_key }} TF_VAR_secret_key: ${{ secrets.TF_VAR_secret_key }} TF_VAR_domain_name: ${{ secrets.TF_VAR_domain_name }} @@ -123,6 +132,9 @@ jobs: if: inputs.terraform_destroy == 'true' && inputs.terraform_apply != 'true' working-directory: ${{ inputs.lambda_path }} env: + TF_VAR_db_host: ${{ secrets.TF_VAR_db_host }} + TF_VAR_db_name: ${{ secrets.TF_VAR_db_name }} + TF_VAR_db_port: ${{ secrets.TF_VAR_db_port }} TF_VAR_api_key: ${{ secrets.TF_VAR_api_key }} TF_VAR_secret_key: ${{ secrets.TF_VAR_secret_key }} TF_VAR_domain_name: ${{ secrets.TF_VAR_domain_name }} diff --git a/.github/workflows/deploy_terraform.yml b/.github/workflows/deploy_terraform.yml index 9511dedb..c360aadf 100644 --- a/.github/workflows/deploy_terraform.yml +++ b/.github/workflows/deploy_terraform.yml @@ -273,6 +273,9 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} AWS_REGION: ${{ secrets.DEV_AWS_REGION }} + TF_VAR_db_host: ${{ secrets.DEV_DB_HOST }} + TF_VAR_db_name: ${{ secrets.DEV_DB_NAME }} + TF_VAR_db_port: ${{ secrets.DEV_DB_PORT }} TF_VAR_api_key: ${{ secrets.DEV_API_KEY }} TF_VAR_secret_key: ${{ secrets.DEV_SECRET_KEY }} TF_VAR_domain_name: ${{ secrets.DEV_DOMAIN_NAME }}