Make sure we're in the correct directory

this will make relative paths and terraform find the correct files
This commit is contained in:
Ryan Ahearn
2023-03-15 16:38:16 -04:00
parent e3610f7d9d
commit 76c74ec392

View File

@@ -46,6 +46,9 @@ set -e
service_account="$username-terraform" service_account="$username-terraform"
# ensure we're in the correct directory
cd $(dirname $0)
if [[ ! -s "secrets.auto.tfvars" ]]; then if [[ ! -s "secrets.auto.tfvars" ]]; then
# create user in notify-local-dev space to create s3 buckets # create user in notify-local-dev space to create s3 buckets
../create_service_account.sh -s notify-local-dev -u $service_account > secrets.auto.tfvars ../create_service_account.sh -s notify-local-dev -u $service_account > secrets.auto.tfvars