Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3379004
D9958.id33548.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
662 B
Referenced Files
None
Subscribers
None
D9958.id33548.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9958: [scripts] Fix terraform lint
Attached
Detach File
Event Timeline
Log In to Comment