Address PR feedback

This commit is contained in:
Ryan Ahearn
2023-03-14 15:36:32 -04:00
parent 778a41a1cb
commit 9eb075f074
4 changed files with 33 additions and 33 deletions

View File

@@ -45,7 +45,7 @@ set -e
service_account="$username-terraform"
if [[ ! -f "secrets.auto.tfvars" ]]; then
if [[ ! -s "secrets.auto.tfvars" ]]; then
# 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
@@ -54,6 +54,10 @@ if [[ ! -f "secrets.auto.tfvars" ]]; then
cf set-space-role $cg_username $org notify-staging SpaceDeveloper
fi
if [[ ! -f "../../.env" ]]; then
cp ../../sample.env ../../.env
fi
set +e
terraform init