@@ -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
@@ -151,7 +151,7 @@ Your output should be similar to the one below:
151
151
Run the following command in terminal:
152
152
``` shell
153
153
terrahub configure -i google_storage -c component.template.terraform.backend.local.path=' /tmp/.terrahub/local_backend/google_storage/terraform.tfstate'
154
- terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.name=" ${GOOGLE_STORAGE_BUCKET } "
154
+ terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.name=" ${STORAGE_BUCKET } "
155
155
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.location=' US'
156
156
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.force_destroy=' true'
157
157
terrahub configure -i google_storage -c component.template.resource.google_storage_bucket.google_storage.project=' ${local.google_project_id}'
@@ -194,7 +194,7 @@ terrahub configure -i google_function -c build.env.variables.COMPONENT_NAME='goo
194
194
terrahub configure -i google_function -c build.env.variables.OBJECT_NAME=' google_storage_object'
195
195
terrahub configure -i google_function -c build.env.variables.THUB_BUILD_PATH=' ..'
196
196
terrahub configure -i google_function -c build.env.variables.THUB_BUILD_OK=' false'
197
- terrahub configure -i google_function -c build.env.variables.THUB_BUCKET_PATH=" gs://${GOOGLE_STORAGE_BUCKET } "
197
+ terrahub configure -i google_function -c build.env.variables.THUB_BUCKET_PATH=" gs://${STORAGE_BUCKET } "
198
198
terrahub configure -i google_function -c build.env.variables.THUB_BUCKET_KEY=' deploy/google_function'
199
199
terrahub configure -i google_function -c build.phases.pre_build.commands[0]=' echo "BUILD: Running pre_build step"'
200
200
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'
@@ -309,4 +309,4 @@ Run the following command in terminal:
309
309
```
310
310
curl https://us-central1-terrahub-123456.cloudfunctions.net/demofunctionxxxxxxxx
311
311
curl https://${GOOGLE_STORAGE_BUCKET}_website.storage.googleapis.com/index.html
312
- ```
312
+ ```
0 commit comments