Skip to content

Commit 2efa119

Browse files
authored
make it shorter
1 parent 1c08e40 commit 2efa119

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ Manual Setup (set values in double quotes and run the following command in termi
1616
```shell
1717
export GOOGLE_CLOUD_PROJECT="" ## e.g. terrahub-123456
1818
export GOOGLE_APPLICATION_CREDENTIALS="" ## e.g. ${HOME}/.config/gcloud/terraform.json
19-
export BILLING_ID="" ## e.g. 123456-ABCDEF-ZYXWVU
20-
export PROJECT_NAME="" ## e.g. TerraHub
21-
export IAM_NAME="" ## e.g. terraform
22-
export IAM_DESC="" ## e.g. terraform service account
23-
export GOOGLE_STORAGE_BUCKET="" ## e.g. terrahub_bucket_123456
19+
export BILLING_ID="" ## e.g. 123456-ABCDEF-ZYXWVU
20+
export PROJECT_NAME="" ## e.g. TerraHub
21+
export IAM_NAME="" ## e.g. terraform
22+
export IAM_DESC="" ## e.g. terraform service account
23+
export STORAGE_BUCKET="" ## e.g. terrahub_bucket_123456
2424
```
2525
### Setup BILLING_ID Programmatically
2626

@@ -143,7 +143,7 @@ Your output should be similar to the one below:
143143
Run the following command in terminal:
144144
```shell
145145
terrahub configure -i google_storage -c component.template.terraform.backend.local.path='/tmp/.terrahub/local_backend/google_storage/terraform.tfstate'
146-
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.name="${GOOGLE_STORAGE_BUCKET}"
146+
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.name="${STORAGE_BUCKET}"
147147
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.location='US'
148148
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.force_destroy='true'
149149
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.project='${local.google_project_id}'
@@ -186,7 +186,7 @@ terrahub configure -i google_function -c build.env.variables.COMPONENT_NAME='goo
186186
terrahub configure -i google_function -c build.env.variables.OBJECT_NAME='google_storage_object'
187187
terrahub configure -i google_function -c build.env.variables.THUB_BUILD_PATH='..'
188188
terrahub configure -i google_function -c build.env.variables.THUB_BUILD_OK='false'
189-
terrahub configure -i google_function -c build.env.variables.THUB_BUCKET_PATH="gs://${GOOGLE_STORAGE_BUCKET}"
189+
terrahub configure -i google_function -c build.env.variables.THUB_BUCKET_PATH="gs://${STORAGE_BUCKET}"
190190
terrahub configure -i google_function -c build.env.variables.THUB_BUCKET_KEY='deploy/google_function'
191191
terrahub configure -i google_function -c build.phases.pre_build.commands[0]='echo "BUILD: Running pre_build step"'
192192
terrahub configure -i google_function -c build.phases.pre_build.commands[1]='./scripts/download.sh $THUB_FUNCTION_TXT $THUB_BUCKET_PATH/$THUB_BUCKET_KEY/$THUB_FUNCTION_TXT'
@@ -241,4 +241,4 @@ Your output should be similar to the one below:
241241
Run the following command in terminal:
242242
```
243243
curl https://us-central1-terrahub-123456.cloudfunctions.net/demofunctionxxxxxxxx
244-
```
244+
```

0 commit comments

Comments
 (0)