@@ -20,6 +20,7 @@ export BILLING_ID="" ## e.g. 123456-ABCDEF-ZYXWVU
20
20
export PROJECT_NAME=" " # # e.g. TerraHub
21
21
export IAM_NAME=" " # # e.g. terraform
22
22
export IAM_DESC=" " # # e.g. terraform service account
23
+ export GOOGLE_STORAGE_BUCKET=" " # # e.g. terrahub_bucket_123456
23
24
```
24
25
### Setup BILLING_ID Programmatically
25
26
@@ -142,7 +143,7 @@ Your output should be similar to the one below:
142
143
Run the following command in terminal:
143
144
``` shell
144
145
terrahub configure -i google_storage -c component.template.terraform.backend.local.path=' /tmp/.terrahub/local_backend/google_storage/terraform.tfstate'
145
- terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.name=' google_storage_99999999 '
146
+ terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.name=" ${GOOGLE_STORAGE_BUCKET} "
146
147
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.location=' US'
147
148
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.force_destroy=' true'
148
149
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.project=' ${local.google_project_id}'
@@ -185,7 +186,7 @@ terrahub configure -i google_function -c build.env.variables.COMPONENT_NAME='goo
185
186
terrahub configure -i google_function -c build.env.variables.OBJECT_NAME=' google_storage_object'
186
187
terrahub configure -i google_function -c build.env.variables.THUB_BUILD_PATH=' ..'
187
188
terrahub configure -i google_function -c build.env.variables.THUB_BUILD_OK=' false'
188
- terrahub configure -i google_function -c build.env.variables.THUB_BUCKET_PATH=' gs://google_storage_99999999 '
189
+ terrahub configure -i google_function -c build.env.variables.THUB_BUCKET_PATH=" gs://${GOOGLE_STORAGE_BUCKET} "
189
190
terrahub configure -i google_function -c build.env.variables.THUB_BUCKET_KEY=' deploy/google_function'
190
191
terrahub configure -i google_function -c build.phases.pre_build.commands[0]=' echo "BUILD: Running pre_build step"'
191
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'
0 commit comments