Page MenuHomePhabricator

D9958.id33548.diff
No OneTemporary

D9958.id33548.diff

diff --git a/scripts/terraform_pre_commit.sh b/scripts/terraform_pre_commit.sh
--- a/scripts/terraform_pre_commit.sh
+++ b/scripts/terraform_pre_commit.sh
@@ -2,9 +2,15 @@
set -e
-cd services/terraform
-echo "formatting services/terraform..."
-terraform fmt -check
-echo "validating services/terraform..."
-terraform validate
-echo "done formatting and validating"
+cd services/terraform/
+echo "Formatting terraform..."
+terraform fmt -recursive
+
+for cfg in dev remote; do
+ pushd "$cfg" >/dev/null
+ echo "Validating '$cfg' terraform configuration..."
+ terraform validate
+ popd >/dev/null
+done
+
+echo "Done formatting and validating terraform"

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 2:36 PM (19 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2593996
Default Alt Text
D9958.id33548.diff (662 B)

Event Timeline