Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 9ca8b9b

Browse files
author
Kinnaird McQuade
committed
Terraform validation tests
1 parent d6938cf commit 9ca8b9b

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

utils/terraform-demo.sh

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#!/usr/bin/env bash
22
set -x
33

4-
54
# Validate that azure-guardrails tool is installed
65
if ! command -v azure-guardrails &> /dev/null
76
then
87
echo "azure-guardrails could not be found. Please download and install the tool from https://github.com/salesforce/azure-guardrails/"
98
exit
109
fi
1110

12-
1311
# Validate that Terraform 0.12 is installed and in use
1412
is_tf_version_12=$(terraform version | grep -m1 "" | grep -m1 "0\.12\.");
1513

@@ -63,24 +61,9 @@ declare -a dirs=( ${no_params_folder} ${params_optional_folder} ${params_require
6361

6462
for dir in ${dirs[@]}; do
6563
cd ./$dir/
66-
echo "Running terraform validate in $${dir}...";
64+
echo "Running terraform validate in $${dir}..";
6765
terraform init -backend=false
6866
terraform validate
6967
echo $!
7068
cd ../../
7169
done
72-
#
73-
#cd ${no_params_folder}
74-
#terraform init -backend=false
75-
#terraform validate
76-
#cd ../../
77-
#
78-
#cd ${params_optional_folder}
79-
#terraform init -backend=false
80-
#terraform validate
81-
#cd ../../
82-
#
83-
#cd ${params_required_folder}
84-
#terraform init -backend=false
85-
#terraform validate
86-
#cd ../../

0 commit comments

Comments
 (0)