Skip to content

Commit 4799574

Browse files
authored
Merge pull request #14 from TerraHubCorp/new_google_demo
Update README.md
2 parents bf81a87 + 3e3960e commit 4799574

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ gcloud services enable cloudresourcemanager.googleapis.com
4747
gcloud services enable cloudbilling.googleapis.com
4848
gcloud services enable iam.googleapis.com
4949
gcloud services enable cloudfunctions.googleapis.com
50+
gcloud services enable storage-component.googleapis.com
5051
```
5152

5253
Your output should be similar to the one below:
@@ -221,7 +222,7 @@ Your output should be similar to the one below:
221222
Run the following command in terminal:
222223
```shell
223224
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"
225226
terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.location='US'
226227
terrahub configure -i google_static_website -c component.template.resource.google_storage_bucket.google_static_website.force_destroy='true'
227228
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
230231
terrahub configure -i google_static_website -c component.template.variable -D -y
231232
terrahub configure -i google_static_website -c build.env.variables.THUB_ENV='dev'
232233
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"
234235
terrahub configure -i google_static_website -c build.env.variables.THUB_ROBOTS='../../robots.dev.txt'
235236
terrahub configure -i google_static_website -c build.env.variables.THUB_BUILD_PATH='../../build'
236237
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:
262263
terrahub configure -i iam_member_object_viewer -c component.template.terraform.backend.local.path='/tmp/.terrahub/local_backend/iam_member_object_viewer/terraform.tfstate'
263264
terrahub configure -i iam_member_object_viewer -c component.template.data.terraform_remote_state.storage.backend='local'
264265
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"
266267
terrahub configure -i iam_member_object_viewer -c component.template.resource.google_storage_bucket_iam_member.iam_member_object_viewer.role="roles/storage.objectViewer"
267268
terrahub configure -i iam_member_object_viewer -c component.template.resource.google_storage_bucket_iam_member.iam_member_object_viewer.member="allUsers"
268269
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:
308309
Run the following command in terminal:
309310
```
310311
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
312313
```

0 commit comments

Comments
 (0)