Refactor Terraform workflow to include Terraform Plan and Show steps

This commit is contained in:
2024-09-24 21:57:44 +02:00
parent d95e722b98
commit 49cbd6ecbe
@@ -89,9 +89,14 @@ jobs:
cd terraform/k8sapps cd terraform/k8sapps
sectool exec terraform init sectool exec terraform init
- name: Terraform Apply - name: Terraform Plan
env: env:
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }} VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
run: | run: |
cd terraform/k8sapps cd terraform/k8sapps
sectool exec terraform plan sectool exec terraform plan -out=tfplan
- name: Show Terraform Plan
run: |
cd terraform/k8sapps
terraform show tfplan