summaryrefslogtreecommitdiff
path: root/scripts/00-create-service-account.sh
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-01-26 15:08:12 +0100
committerSanto Cariotti <santo@dcariotti.me>2025-01-26 15:08:12 +0100
commitf1d310658f8f8d7b1c1c7cf802cb98a451a61ed1 (patch)
tree953780c981faa1608ed735e203bd55a5db56c407 /scripts/00-create-service-account.sh
parente7bbd6ea60fc40e8d9a31ece57b1fcc7c170f0da (diff)
Add debug env on scripts
Diffstat (limited to 'scripts/00-create-service-account.sh')
-rwxr-xr-xscripts/00-create-service-account.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/00-create-service-account.sh b/scripts/00-create-service-account.sh
index 984e55b..5048df8 100755
--- a/scripts/00-create-service-account.sh
+++ b/scripts/00-create-service-account.sh
@@ -1,5 +1,9 @@
#!/bin/sh
+if [ -z $DEBUG ]; then
+ set -euxo pipefail
+fi
+
gcloud iam service-accounts create ${SERVICE_ACCOUNT} \
--description="Spark access account to Google Cloud Buckets" \
--display-name="Spark to Bucket"