@@ -16,11 +16,11 @@ Manual Setup (set values in double quotes and run the following command in termi
16
16
``` shell
17
17
export GOOGLE_CLOUD_PROJECT=" " # # e.g. terrahub-123456
18
18
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
24
24
```
25
25
### Setup BILLING_ID Programmatically
26
26
@@ -143,7 +143,7 @@ Your output should be similar to the one below:
143
143
Run the following command in terminal:
144
144
``` shell
145
145
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 } "
147
147
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.location=' US'
148
148
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.force_destroy=' true'
149
149
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
186
186
terrahub configure -i google_function -c build.env.variables.OBJECT_NAME=' google_storage_object'
187
187
terrahub configure -i google_function -c build.env.variables.THUB_BUILD_PATH=' ..'
188
188
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 } "
190
190
terrahub configure -i google_function -c build.env.variables.THUB_BUCKET_KEY=' deploy/google_function'
191
191
terrahub configure -i google_function -c build.phases.pre_build.commands[0]=' echo "BUILD: Running pre_build step"'
192
192
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:
241
241
Run the following command in terminal:
242
242
```
243
243
curl https://us-central1-terrahub-123456.cloudfunctions.net/demofunctionxxxxxxxx
244
- ```
244
+ ```
0 commit comments