From 9ca8b9bf2a5bde268dbde5a722c4562be5db03bb Mon Sep 17 00:00:00 2001 From: Kinnaird McQuade Date: Thu, 25 Mar 2021 10:10:07 -0400 Subject: [PATCH] Terraform validation tests --- utils/terraform-demo.sh | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/utils/terraform-demo.sh b/utils/terraform-demo.sh index 6cc0aa0..0c6a823 100755 --- a/utils/terraform-demo.sh +++ b/utils/terraform-demo.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash set -x - # Validate that azure-guardrails tool is installed if ! command -v azure-guardrails &> /dev/null then @@ -9,7 +8,6 @@ then exit fi - # Validate that Terraform 0.12 is installed and in use is_tf_version_12=$(terraform version | grep -m1 "" | grep -m1 "0\.12\."); @@ -63,24 +61,9 @@ declare -a dirs=( ${no_params_folder} ${params_optional_folder} ${params_require for dir in ${dirs[@]}; do cd ./$dir/ - echo "Running terraform validate in $${dir}..."; + echo "Running terraform validate in $${dir}.."; terraform init -backend=false terraform validate echo $! cd ../../ done -# -#cd ${no_params_folder} -#terraform init -backend=false -#terraform validate -#cd ../../ -# -#cd ${params_optional_folder} -#terraform init -backend=false -#terraform validate -#cd ../../ -# -#cd ${params_required_folder} -#terraform init -backend=false -#terraform validate -#cd ../../