github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/test/fixtures/terragrunt/terragrunt-with-error/main.tf (about) 1 resource "null_resource" "fail_on_first_run" { 2 provisioner "local-exec" { 3 command = "if [[ -f terraform.tfstate.backup ]]; then echo 'This is not the first run, so exiting successfully' && exit 0; else echo 'This is the first run, exiting with an error' && exit 1; fi" 4 interpreter = ["/bin/bash", "-c"] 5 } 6 }