Skip to content

Commit

Permalink
Template infra deploy #7295226209
Browse files Browse the repository at this point in the history
  • Loading branch information
nava-platform-bot committed Dec 22, 2023
1 parent 14495e6 commit 19547dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .template-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7f2a842c31f14cb37ed3ae34e9f01ba3d8622d72
649f17792033fd7cf917a1931d23ab7041213c9c
7 changes: 4 additions & 3 deletions bin/set-up-current-account.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ echo "Creating bucket: $TF_STATE_BUCKET_NAME"
# For creating buckets outside of us-east-1, a LocationConstraint needs to be set
# For creating buckets in us-east-1, LocationConstraint cannot be set
# See https://docs.aws.amazon.com/cli/latest/reference/s3api/create-bucket.html
CREATE_BUCKET_CONFIGURATION=""
CREATE_BUCKET_CONFIGURATION=("")
if [ "$REGION" != "us-east-1" ]; then
CREATE_BUCKET_CONFIGURATION="--create-bucket-configuration LocationConstraint=$REGION"
CREATE_BUCKET_CONFIGURATION=("--create-bucket-configuration" "LocationConstraint=$REGION")
fi
aws s3api create-bucket --bucket "$TF_STATE_BUCKET_NAME" --region "$REGION" "$CREATE_BUCKET_CONFIGURATION" > /dev/null

aws s3api create-bucket --bucket "$TF_STATE_BUCKET_NAME" --region "$REGION" "${CREATE_BUCKET_CONFIGURATION[@]}" > /dev/null
echo
echo "----------------------------------"
echo "Creating rest of account resources"
Expand Down

0 comments on commit 19547dc

Please sign in to comment.