Skip to content

Commit

Permalink
fix(pipeline): fail fast for missing input variables
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Nov 9, 2022
1 parent ae955f9 commit b8bcd80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions terraform/pipeline/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ stages:
provider: azurerm
command: init
workingDirectory: "$(System.DefaultWorkingDirectory)/terraform"
# https://developer.hashicorp.com/terraform/tutorials/automation/automate-terraform#automated-terraform-cli-workflow
commandOptions: -input=false
# service connection
backendServiceArm: deployer
# needs to match main.tf
Expand All @@ -68,7 +70,7 @@ stages:
command: plan
# wait for lock to be released, in case being used by another pipeline run
# https://discuss.hashicorp.com/t/terraform-plan-wait-for-lock-to-be-released/6870/2
commandOptions: -lock-timeout=2m
commandOptions: -input=false -lock-timeout=2m
workingDirectory: "$(System.DefaultWorkingDirectory)/terraform"
# service connection
environmentServiceNameAzureRM: deployer
Expand All @@ -78,7 +80,7 @@ stages:
provider: azurerm
command: apply
# (ditto the lock comment above)
commandOptions: -lock-timeout=2m
commandOptions: -input=false -lock-timeout=2m
workingDirectory: "$(System.DefaultWorkingDirectory)/terraform"
# service connection
environmentServiceNameAzureRM: deployer
Expand Down

0 comments on commit b8bcd80

Please sign in to comment.