Refactor Terraform validation workflow to use 'terraform validate' command

This commit is contained in:
2024-09-28 19:19:18 +02:00
parent 4de62d7334
commit bad1668115
2 changed files with 2 additions and 24 deletions
+1 -12
View File
@@ -33,15 +33,4 @@ jobs:
run: | run: |
cd terraform/iac cd terraform/iac
sectool exec terraform init sectool exec terraform init
terraform validate
- name: Terraform Plan
env:
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
run: |
cd terraform/iac
sectool exec -n terraform plan -out=tfplan
- name: Show Terraform Plan
run: |
cd terraform/iac
terraform show tfplan
@@ -88,15 +88,4 @@ jobs:
run: | run: |
cd terraform/k8sapps cd terraform/k8sapps
sectool exec terraform init sectool exec terraform init
terraform validate
- name: Terraform Plan
env:
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
run: |
cd terraform/k8sapps
sectool exec -n terraform plan -out=tfplan
- name: Show Terraform Plan
run: |
cd terraform/k8sapps
terraform show tfplan