Skip to content

Commit

Permalink
Merge pull request #4 from fiap-8soat-tc-one/feature/tf-sample
Browse files Browse the repository at this point in the history
feat: fixed env
  • Loading branch information
jcmdsbr authored Nov 11, 2024
2 parents 372b9a8 + 52e3188 commit 18f4bd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/iac-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions .github/workflows/iac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18f4bd3

Please sign in to comment.