I have configured the below YAML pipeline for generating terraform plan.
trigger:
- none
stages:
- stage: Terraform Build
displayName: Terraform Validate
pool:
vmImage: "ubuntu-latest"
jobs:
- job: Terraform Validate
variables:
- group: xxxx
steps:
- script: |
set -x
terraform init
terraform validate
terraform plan -var-file="./testterraform.tfvars" --out test_tf.plan
displayName: Init, Validate, Plan and Apply
env:
ARM_TENANT_ID: $(TenantId)
ARM_SUBSCRIPTION_ID: $(SubscriptionId)
ARM_CLIENT_ID: $(ClientId)
ARM_CLIENT_SECRET: $(ClientSecret)
I want to add new stage with approvals for deploying the above generated terraform plan.