From fc0c8bd175803d7c536ad43b4ab95c4d60a84b4e Mon Sep 17 00:00:00 2001 From: maunope <44614195+maunope@users.noreply.github.com> Date: Tue, 15 Nov 2022 12:23:44 +0100 Subject: [PATCH] Update README.md added sample --- modules/cloud-function/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/modules/cloud-function/README.md b/modules/cloud-function/README.md index df45d3afc..daaaccfa9 100644 --- a/modules/cloud-function/README.md +++ b/modules/cloud-function/README.md @@ -154,6 +154,27 @@ module "cf-http" { } # tftest skip ``` + +### Private Cloud Build Pool + +This deploys a Cloud Function with an HTTP endpoint, using a pre-existing GCS bucket for deployment using a pre existing private Cloud Build worker pool. + +```hcl +module "cf-http" { + source = "./fabric/modules/cloud-function" + project_id = "my-project" + name = "test-cf-http" + bucket_name = "test-cf-bundles" + build_worker_pool = "projects/my-project/locations/europe-west1/workerPools/my_build_worker_pool" + bundle_config = { + source_dir = "my-cf-source-folder" + output_path = "bundle.zip" + excludes = null + } +} +# tftest skip +``` + ## Variables