@@ -114,8 +114,7 @@ Your output should be similar to the one below:
114
114
Run the following command in terminal:
115
115
``` shell
116
116
terrahub component -t google_storage_bucket -n demo_storage_bucket \
117
- && terrahub component -t google_cloudfunctions_function -n demo_function -o ../demo_storage_bucket \
118
- && terrahub component -t google_storage_bucket -n demo_www -o ../demo_storage_bucket
117
+ && terrahub component -t google_cloudfunctions_function -n demo_function -o ../demo_storage_bucket
119
118
```
120
119
121
120
Your output should be similar to the one below:
@@ -143,8 +142,9 @@ Your output should be similar to the one below:
143
142
Run the following command in terminal:
144
143
``` shell
145
144
terrahub configure -i demo_storage_bucket -c component.template.terraform.backend.local.path=' /tmp/.terrahub/local_backend/demo_storage_bucket/terraform.tfstate'
146
- terrahub configure -i demo_storage_bucket -c component.template.resource.google_storage_bucket.demo_storage_bucket.name=' demo_storage_bucket_a123456b '
145
+ terrahub configure -i demo_storage_bucket -c component.template.resource.google_storage_bucket.demo_storage_bucket.name=' demo_storage_bucket_99999999 '
147
146
terrahub configure -i demo_storage_bucket -c component.template.resource.google_storage_bucket.demo_storage_bucket.location=' US'
147
+ terrahub configure -i demo_storage_bucket -c component.template.resource.google_storage_bucket.demo_storage_bucket.force_destroy=' true'
148
148
terrahub configure -i demo_storage_bucket -c component.template.resource.google_storage_bucket.demo_storage_bucket.project=' ${local.google_project_id}'
149
149
terrahub configure -i demo_storage_bucket -c component.template.variable -D -y
150
150
```
@@ -162,7 +162,7 @@ terrahub configure -i demo_function -c component.template.terraform.backend.loca
162
162
terrahub configure -i demo_function -c component.template.data.terraform_remote_state.storage.backend=' local'
163
163
terrahub configure -i demo_function -c component.template.data.terraform_remote_state.storage.config.path=' /tmp/.terrahub/local_backend/demo_storage_bucket/terraform.tfstate'
164
164
terrahub configure -i demo_function -c component.template.resource.google_storage_bucket_object.demo_object.name=' demo.zip'
165
- terrahub configure -i demo_function -c component.template.resource.google_storage_bucket_object.demo_object.bucket=' ${data.terraform_remote_state.storage.thub_id}/deploy/demo_function '
165
+ terrahub configure -i demo_function -c component.template.resource.google_storage_bucket_object.demo_object.bucket=' ${data.terraform_remote_state.storage.thub_id}'
166
166
terrahub configure -i demo_function -c component.template.resource.google_storage_bucket_object.demo_object.source=' ./demo.zip'
167
167
terrahub configure -i demo_function -c component.template.resource.google_cloudfunctions_function.demo_function.depends_on[0]=' google_storage_bucket_object.demo_object'
168
168
terrahub configure -i demo_function -c component.template.resource.google_cloudfunctions_function.demo_function.name=' demofunction${local.project["code"]}'
@@ -185,8 +185,8 @@ terrahub configure -i demo_function -c build.env.variables.COMPONENT_NAME='demo_
185
185
terrahub configure -i demo_function -c build.env.variables.OBJECT_NAME=' demo_object'
186
186
terrahub configure -i demo_function -c build.env.variables.THUB_BUILD_PATH=' ..'
187
187
terrahub configure -i demo_function -c build.env.variables.THUB_BUILD_OK=' false'
188
- terrahub configure -i demo_function -c build.env.variables.THUB_BUCKET_PATH=' gs://demo_storage_bucket_a123456b '
189
- terrahub configure -i demo_function -c build.env.variables.THUB_BUCKET_KEY: ' deploy/demo_function'
188
+ terrahub configure -i demo_function -c build.env.variables.THUB_BUCKET_PATH=' gs://demo_storage_bucket_99999999 '
189
+ terrahub configure -i demo_function -c build.env.variables.THUB_BUCKET_KEY= ' deploy/demo_function'
190
190
terrahub configure -i demo_function -c build.phases.pre_build.commands[0]=' echo "BUILD: Running pre_build step"'
191
191
terrahub configure -i demo_function -c build.phases.pre_build.commands[1]=' ./scripts/download.sh $THUB_FUNCTION_TXT $THUB_BUCKET_PATH/$THUB_BUCKET_KEY/$THUB_FUNCTION_TXT'
192
192
terrahub configure -i demo_function -c build.phases.pre_build.commands[2]=' ./scripts/compare.sh $THUB_FUNCTION_TXT $THUB_BUILD_PATH/*.js'
@@ -207,19 +207,6 @@ Your output should be similar to the one below:
207
207
✅ Done
208
208
```
209
209
210
- ## Customize TerraHub Component for Frontend
211
-
212
- Run the following command in terminal:
213
- ``` shell
214
- terrahub configure -i demo_www -c component.template.terraform.backend.local.path=' /tmp/.terrahub/local_backend/demo_www/terraform.tfstate'
215
-
216
- ```
217
-
218
- Your output should be similar to the one below:
219
- ```
220
- ✅ Done
221
- ```
222
-
223
210
## Visualize TerraHub Components
224
211
225
212
Run the following command in terminal:
@@ -239,8 +226,8 @@ Project: demo-terraform-automation-google
239
226
240
227
Run the following command in terminal:
241
228
``` shell
242
- terrahub run -a -y -i demo_storage
243
- terrahub build -i demo_function,demo_www
229
+ terrahub run -a -y -i demo_storage_bucket
230
+ terrahub build -i demo_function
244
231
terrahub run -a -y
245
232
```
246
233
0 commit comments