Refactor Terraform validation workflow to use 'terraform validate' command
This commit is contained in:
@@ -33,15 +33,4 @@ jobs:
|
||||
run: |
|
||||
cd terraform/iac
|
||||
sectool exec terraform init
|
||||
|
||||
- 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
|
||||
terraform validate
|
||||
|
||||
Reference in New Issue
Block a user