@@ -115,7 +115,8 @@ Your output should be similar to the one below:
115
115
Run the following command in terminal:
116
116
``` shell
117
117
terrahub component -t google_storage_bucket -n google_storage \
118
- && terrahub component -t google_cloudfunctions_function -n google_function -o ../google_storage
118
+ && terrahub component -t google_cloudfunctions_function -n google_function -o ../google_storage \
119
+ && terrahub component -t google_storage_bucket -n google_static_website
119
120
```
120
121
121
122
Your output should be similar to the one below:
@@ -208,6 +209,26 @@ Your output should be similar to the one below:
208
209
✅ Done
209
210
```
210
211
212
+ ## Customize TerraHub Component for Google Cloud Static WebSite
213
+
214
+ Run the following command in terminal:
215
+ ``` shell
216
+ git clone https://github.com/TerraHubCorp/www.git
217
+ terrahub configure -i google_static_website -c component.template.terraform.backend.local.path=' /tmp/.terrahub/local_backend/google_static_website/terraform.tfstate'
218
+ terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.name=" ${GOOGLE_STORAGE_BUCKET} _website"
219
+ terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.location=' US'
220
+ terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.force_destroy=' true'
221
+ terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.project=' ${local.google_project_id}'
222
+ terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.website.main_page_suffix=' index.html'
223
+ terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.website.not_found_page=' /404.html'
224
+ terrahub configure -i google_static_website -c component.template.variable -D -y
225
+ ```
226
+
227
+ Your output should be similar to the one below:
228
+ ```
229
+ ✅ Done
230
+ ```
231
+
211
232
## Visualize TerraHub Components
212
233
213
234
Run the following command in terminal:
0 commit comments