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