@@ -47,6 +47,7 @@ gcloud services enable cloudresourcemanager.googleapis.com
47
47
gcloud services enable cloudbilling.googleapis.com
48
48
gcloud services enable iam.googleapis.com
49
49
gcloud services enable cloudfunctions.googleapis.com
50
+ gcloud services enable storage-component.googleapis.com
50
51
```
51
52
52
53
Your output should be similar to the one below:
@@ -221,7 +222,7 @@ Your output should be similar to the one below:
221
222
Run the following command in terminal:
222
223
``` shell
223
224
terrahub configure -i google_static_website -c component.template.terraform.backend.local.path=' /tmp/.terrahub/local_backend/google_static_website/terraform.tfstate'
224
- terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.name=" ${GOOGLE_STORAGE_BUCKET } _website"
225
+ terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.name=" ${STORAGE_BUCKET } _website"
225
226
terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.location=' US'
226
227
terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.force_destroy=' true'
227
228
terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.project=' ${local.google_project_id}'
@@ -230,7 +231,7 @@ terrahub configure -i google_static_website -c component.template.resource.googl
230
231
terrahub configure -i google_static_website -c component.template.variable -D -y
231
232
terrahub configure -i google_static_website -c build.env.variables.THUB_ENV=' dev'
232
233
terrahub configure -i google_static_website -c build.env.variables.THUB_INDEX_FILE=' www.txt'
233
- terrahub configure -i google_static_website -c build.env.variables.THUB_S3_PATH=" gs://${GOOGLE_STORAGE_BUCKET } _website"
234
+ terrahub configure -i google_static_website -c build.env.variables.THUB_S3_PATH=" gs://${STORAGE_BUCKET } _website"
234
235
terrahub configure -i google_static_website -c build.env.variables.THUB_ROBOTS=' ../../robots.dev.txt'
235
236
terrahub configure -i google_static_website -c build.env.variables.THUB_BUILD_PATH=' ../../build'
236
237
terrahub configure -i google_static_website -c build.env.variables.THUB_SOURCE_PATH=' ../../assets ../../static/fonts ../../static/img ../../views'
@@ -262,7 +263,7 @@ Run the following command in terminal:
262
263
terrahub configure -i iam_member_object_viewer -c component.template.terraform.backend.local.path=' /tmp/.terrahub/local_backend/iam_member_object_viewer/terraform.tfstate'
263
264
terrahub configure -i iam_member_object_viewer -c component.template.data.terraform_remote_state.storage.backend=' local'
264
265
terrahub configure -i iam_member_object_viewer -c component.template.data.terraform_remote_state.storage.config.path=' /tmp/.terrahub/local_backend/google_static_website/terraform.tfstate'
265
- terrahub configure -i iam_member_object_viewer -c component.template.resource.google_storage_bucket_iam_member.iam_member_object_viewer.bucket=" ${GOOGLE_STORAGE_BUCKET } _website"
266
+ terrahub configure -i iam_member_object_viewer -c component.template.resource.google_storage_bucket_iam_member.iam_member_object_viewer.bucket=" ${STORAGE_BUCKET } _website"
266
267
terrahub configure -i iam_member_object_viewer -c component.template.resource.google_storage_bucket_iam_member.iam_member_object_viewer.role=" roles/storage.objectViewer"
267
268
terrahub configure -i iam_member_object_viewer -c component.template.resource.google_storage_bucket_iam_member.iam_member_object_viewer.member=" allUsers"
268
269
terrahub configure -i iam_member_object_viewer -c component.template.variable -D -y
@@ -308,5 +309,5 @@ Your output should be similar to the one below:
308
309
Run the following command in terminal:
309
310
```
310
311
curl https://us-central1-terrahub-123456.cloudfunctions.net/demofunctionxxxxxxxx
311
- curl https://${GOOGLE_STORAGE_BUCKET }_website.storage.googleapis.com/index.html
312
+ curl https://${STORAGE_BUCKET }_website.storage.googleapis.com/index.html
312
313
```
0 commit comments