From 52e3188c250e7bc0f4c11bb909416ac01b0b7234 Mon Sep 17 00:00:00 2001 From: "c_jean.silva" Date: Mon, 11 Nov 2024 20:44:43 -0300 Subject: [PATCH] feat: fixed env --- .github/workflows/iac-destroy.yml | 4 ++++ .github/workflows/iac.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/iac-destroy.yml b/.github/workflows/iac-destroy.yml index 5ea37c1..c672cc4 100644 --- a/.github/workflows/iac-destroy.yml +++ b/.github/workflows/iac-destroy.yml @@ -32,8 +32,12 @@ jobs: - name: Terraform Plan working-directory: ./src/infra + env: + TF_VAR_db_password: ${{ secrets.AWS_RDS_DB_PASSWORD }} run: terraform plan -destroy -out=tfplan - name: Terraform Apply working-directory: ./src/infra + env: + TF_VAR_db_password: ${{ secrets.AWS_RDS_DB_PASSWORD }} run: terraform apply -auto-approve tfplan \ No newline at end of file diff --git a/.github/workflows/iac.yml b/.github/workflows/iac.yml index a4eda96..5dc29de 100644 --- a/.github/workflows/iac.yml +++ b/.github/workflows/iac.yml @@ -34,6 +34,8 @@ jobs: - name: Terraform Plan working-directory: ./src/infra + env: + TF_VAR_db_password: ${{ secrets.AWS_RDS_DB_PASSWORD }} run: terraform plan -out=tfplan - name: Terraform Apply