MON-293 add terraform validate to pipeline

This commit is contained in:
Quentin Manfroi 2018-08-24 18:56:57 +02:00
parent 8342a6d9d8
commit 9cccfe2dea

View File

@ -4,4 +4,12 @@ set -xueo pipefail
source "$(dirname $0)/utils.sh"
goto_root
for path in $(find "$(get_scope $1)" -path ./testing -prune -o -path ./incubator -prune -o -name 'inputs.tf' -print); do
cd $(dirname ${path})
echo $path
terraform init
terraform validate --check-variables=false
cd -
done
terraform fmt