From 251703c63cf257d7a3f8dc7963e0933e7f1472b7 Mon Sep 17 00:00:00 2001
From: maunope <44614195+maunope@users.noreply.github.com>
Date: Tue, 15 Nov 2022 12:18:00 +0100
Subject: [PATCH 01/13] Update README.md
md file update
---
modules/cloud-function/README.md | 37 ++++++++++++++++----------------
1 file changed, 19 insertions(+), 18 deletions(-)
diff --git a/modules/cloud-function/README.md b/modules/cloud-function/README.md
index aa0d0f9d..df45d3af 100644
--- a/modules/cloud-function/README.md
+++ b/modules/cloud-function/README.md
@@ -161,25 +161,26 @@ module "cf-http" {
| name | description | type | required | default |
|---|---|:---:|:---:|:---:|
| [bucket_name](variables.tf#L26) | Name of the bucket that will be used for the function code. It will be created with prefix prepended if bucket_config is not null. | string
| ✓ | |
-| [bundle_config](variables.tf#L31) | Cloud function source folder and generated zip bundle paths. Output path defaults to '/tmp/bundle.zip' if null. | object({…})
| ✓ | |
-| [name](variables.tf#L88) | Name used for cloud function and associated resources. | string
| ✓ | |
-| [project_id](variables.tf#L103) | Project id used for all resources. | string
| ✓ | |
+| [build_worker_pool](variables.tf#L31) | Build worker pool, in projects//locations//workerPools/ format | string
| ✓ | |
+| [bundle_config](variables.tf#L36) | Cloud function source folder and generated zip bundle paths. Output path defaults to '/tmp/bundle.zip' if null. | object({…})
| ✓ | |
+| [name](variables.tf#L93) | Name used for cloud function and associated resources. | string
| ✓ | |
+| [project_id](variables.tf#L104) | Project id used for all resources. | string
| ✓ | |
| [bucket_config](variables.tf#L17) | Enable and configure auto-created bucket. Set fields to null to use defaults. | object({…})
| | null
|
-| [description](variables.tf#L40) | Optional description. | string
| | "Terraform managed."
|
-| [environment_variables](variables.tf#L46) | Cloud function environment variables. | map(string)
| | {}
|
-| [function_config](variables.tf#L52) | Cloud function configuration. | object({…})
| | {…}
|
-| [iam](variables.tf#L70) | IAM bindings for topic in {ROLE => [MEMBERS]} format. | map(list(string))
| | {}
|
-| [ingress_settings](variables.tf#L76) | Control traffic that reaches the cloud function. Allowed values are ALLOW_ALL, ALLOW_INTERNAL_AND_GCLB and ALLOW_INTERNAL_ONLY . | string
| | null
|
-| [labels](variables.tf#L82) | Resource labels. | map(string)
| | {}
|
-| [prefix](variables.tf#L93) | Optional prefix used for resource names. | string
| | null
|
-| [region](variables.tf#L108) | Region used for all resources. | string
| | "europe-west1"
|
-| [secrets](variables.tf#L114) | Secret Manager secrets. Key is the variable name or mountpoint, volume versions are in version:path format. | map(object({…}))
| | {}
|
-| [service_account](variables.tf#L126) | Service account email. Unused if service account is auto-created. | string
| | null
|
-| [service_account_create](variables.tf#L132) | Auto-create service account. | bool
| | false
|
-| [trigger_config](variables.tf#L138) | Function trigger configuration. Leave null for HTTP trigger. | object({…})
| | null
|
-| [v2](variables.tf#L167) | Whether to use Cloud Function version 2nd Gen or 1st Gen. | bool
| | false
|
-| [vpc_connector](variables.tf#L148) | VPC connector configuration. Set create to 'true' if a new connector needs to be created. | object({…})
| | null
|
-| [vpc_connector_config](variables.tf#L158) | VPC connector network configuration. Must be provided if new VPC connector is being created. | object({…})
| | null
|
+| [description](variables.tf#L45) | Optional description. | string
| | "Terraform managed."
|
+| [environment_variables](variables.tf#L51) | Cloud function environment variables. | map(string)
| | {}
|
+| [function_config](variables.tf#L57) | Cloud function configuration. | object({…})
| | {…}
|
+| [iam](variables.tf#L75) | IAM bindings for topic in {ROLE => [MEMBERS]} format. | map(list(string))
| | {}
|
+| [ingress_settings](variables.tf#L81) | Control traffic that reaches the cloud function. Allowed values are ALLOW_ALL, ALLOW_INTERNAL_AND_GCLB and ALLOW_INTERNAL_ONLY . | string
| | null
|
+| [labels](variables.tf#L87) | Resource labels. | map(string)
| | {}
|
+| [prefix](variables.tf#L98) | Optional prefix used for resource names. | string
| | null
|
+| [region](variables.tf#L109) | Region used for all resources. | string
| | "europe-west1"
|
+| [secrets](variables.tf#L115) | Secret Manager secrets. Key is the variable name or mountpoint, volume versions are in version:path format. | map(object({…}))
| | {}
|
+| [service_account](variables.tf#L127) | Service account email. Unused if service account is auto-created. | string
| | null
|
+| [service_account_create](variables.tf#L133) | Auto-create service account. | bool
| | false
|
+| [trigger_config](variables.tf#L139) | Function trigger configuration. Leave null for HTTP trigger. | object({…})
| | null
|
+| [v2](variables.tf#L168) | Whether to use Cloud Function version 2nd Gen or 1st Gen. | bool
| | false
|
+| [vpc_connector](variables.tf#L149) | VPC connector configuration. Set create to 'true' if a new connector needs to be created. | object({…})
| | null
|
+| [vpc_connector_config](variables.tf#L159) | VPC connector network configuration. Must be provided if new VPC connector is being created. | object({…})
| | null
|
## Outputs
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 02/13] 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 df45d3af..daaaccfa 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
From f00c7da926d30e3a77e26dfe0a3658c2d6a1e228 Mon Sep 17 00:00:00 2001
From: maunope <44614195+maunope@users.noreply.github.com>
Date: Tue, 15 Nov 2022 12:24:19 +0100
Subject: [PATCH 03/13] Update main.tf
added worker pool parameter
---
modules/cloud-function/main.tf | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/cloud-function/main.tf b/modules/cloud-function/main.tf
index 0a424904..ad9a4284 100644
--- a/modules/cloud-function/main.tf
+++ b/modules/cloud-function/main.tf
@@ -77,6 +77,7 @@ resource "google_cloudfunctions_function" "function" {
labels = var.labels
trigger_http = var.trigger_config == null ? true : null
ingress_settings = var.ingress_settings
+ build_worker_pool = var.build_worker_pool
vpc_connector = local.vpc_connector
vpc_connector_egress_settings = try(
@@ -136,6 +137,7 @@ resource "google_cloudfunctions2_function" "function" {
name = "${local.prefix}${var.name}"
description = var.description
build_config {
+ worker_pool = var.build_worker_pool ##check
runtime = var.function_config.runtime
entry_point = "${var.function_config.entry_point}_http" # Set the entry point
environment_variables = var.environment_variables
From a661dad67c65796a05cda5dbf423da945a6822a9 Mon Sep 17 00:00:00 2001
From: maunope <44614195+maunope@users.noreply.github.com>
Date: Tue, 15 Nov 2022 12:24:59 +0100
Subject: [PATCH 04/13] Update variables.tf
added worker pool variable
---
modules/cloud-function/variables.tf | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/modules/cloud-function/variables.tf b/modules/cloud-function/variables.tf
index 8f3eeb36..7e6404d0 100644
--- a/modules/cloud-function/variables.tf
+++ b/modules/cloud-function/variables.tf
@@ -28,6 +28,11 @@ variable "bucket_name" {
type = string
}
+variable "build_worker_pool" {
+ description = "Build worker pool, in projects//locations//workerPools/ format"
+ type = string
+}
+
variable "bundle_config" {
description = "Cloud function source folder and generated zip bundle paths. Output path defaults to '/tmp/bundle.zip' if null."
type = object({
@@ -94,10 +99,6 @@ variable "prefix" {
description = "Optional prefix used for resource names."
type = string
default = null
- validation {
- condition = var.prefix != ""
- error_message = "Prefix cannot be empty, please use null instead."
- }
}
variable "project_id" {
@@ -170,3 +171,4 @@ variable "v2" {
default = false
}
+
From 099ac6ea7ee35d430e42fd809ef9a377864d1947 Mon Sep 17 00:00:00 2001
From: maunope <44614195+maunope@users.noreply.github.com>
Date: Tue, 15 Nov 2022 13:52:52 +0100
Subject: [PATCH 05/13] Update main.tf
removed comment
---
modules/cloud-function/main.tf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/cloud-function/main.tf b/modules/cloud-function/main.tf
index ad9a4284..280f33c2 100644
--- a/modules/cloud-function/main.tf
+++ b/modules/cloud-function/main.tf
@@ -137,7 +137,7 @@ resource "google_cloudfunctions2_function" "function" {
name = "${local.prefix}${var.name}"
description = var.description
build_config {
- worker_pool = var.build_worker_pool ##check
+ worker_pool = var.build_worker_pool
runtime = var.function_config.runtime
entry_point = "${var.function_config.entry_point}_http" # Set the entry point
environment_variables = var.environment_variables
From a199214970a8ff63fcab634464bad71409347469 Mon Sep 17 00:00:00 2001
From: maunope <44614195+maunope@users.noreply.github.com>
Date: Tue, 15 Nov 2022 14:42:19 +0100
Subject: [PATCH 06/13] Update variables.tf
fixed test
---
modules/cloud-function/variables.tf | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/cloud-function/variables.tf b/modules/cloud-function/variables.tf
index 7e6404d0..5989d2bd 100644
--- a/modules/cloud-function/variables.tf
+++ b/modules/cloud-function/variables.tf
@@ -31,6 +31,7 @@ variable "bucket_name" {
variable "build_worker_pool" {
description = "Build worker pool, in projects//locations//workerPools/ format"
type = string
+ default = null
}
variable "bundle_config" {
From fbfbb937837541ac999634b7f0cce25c61a9598e Mon Sep 17 00:00:00 2001
From: maunope <44614195+maunope@users.noreply.github.com>
Date: Tue, 15 Nov 2022 14:47:11 +0100
Subject: [PATCH 07/13] Update README.md
linting fix
---
modules/cloud-function/README.md | 39 ++++++++++++++++----------------
1 file changed, 19 insertions(+), 20 deletions(-)
diff --git a/modules/cloud-function/README.md b/modules/cloud-function/README.md
index daaaccfa..e38cbb65 100644
--- a/modules/cloud-function/README.md
+++ b/modules/cloud-function/README.md
@@ -174,7 +174,6 @@ module "cf-http" {
}
# tftest skip
```
-
## Variables
@@ -182,26 +181,26 @@ module "cf-http" {
| name | description | type | required | default |
|---|---|:---:|:---:|:---:|
| [bucket_name](variables.tf#L26) | Name of the bucket that will be used for the function code. It will be created with prefix prepended if bucket_config is not null. | string
| ✓ | |
-| [build_worker_pool](variables.tf#L31) | Build worker pool, in projects//locations//workerPools/ format | string
| ✓ | |
-| [bundle_config](variables.tf#L36) | Cloud function source folder and generated zip bundle paths. Output path defaults to '/tmp/bundle.zip' if null. | object({…})
| ✓ | |
-| [name](variables.tf#L93) | Name used for cloud function and associated resources. | string
| ✓ | |
-| [project_id](variables.tf#L104) | Project id used for all resources. | string
| ✓ | |
+| [bundle_config](variables.tf#L37) | Cloud function source folder and generated zip bundle paths. Output path defaults to '/tmp/bundle.zip' if null. | object({…})
| ✓ | |
+| [name](variables.tf#L94) | Name used for cloud function and associated resources. | string
| ✓ | |
+| [project_id](variables.tf#L105) | Project id used for all resources. | string
| ✓ | |
| [bucket_config](variables.tf#L17) | Enable and configure auto-created bucket. Set fields to null to use defaults. | object({…})
| | null
|
-| [description](variables.tf#L45) | Optional description. | string
| | "Terraform managed."
|
-| [environment_variables](variables.tf#L51) | Cloud function environment variables. | map(string)
| | {}
|
-| [function_config](variables.tf#L57) | Cloud function configuration. | object({…})
| | {…}
|
-| [iam](variables.tf#L75) | IAM bindings for topic in {ROLE => [MEMBERS]} format. | map(list(string))
| | {}
|
-| [ingress_settings](variables.tf#L81) | Control traffic that reaches the cloud function. Allowed values are ALLOW_ALL, ALLOW_INTERNAL_AND_GCLB and ALLOW_INTERNAL_ONLY . | string
| | null
|
-| [labels](variables.tf#L87) | Resource labels. | map(string)
| | {}
|
-| [prefix](variables.tf#L98) | Optional prefix used for resource names. | string
| | null
|
-| [region](variables.tf#L109) | Region used for all resources. | string
| | "europe-west1"
|
-| [secrets](variables.tf#L115) | Secret Manager secrets. Key is the variable name or mountpoint, volume versions are in version:path format. | map(object({…}))
| | {}
|
-| [service_account](variables.tf#L127) | Service account email. Unused if service account is auto-created. | string
| | null
|
-| [service_account_create](variables.tf#L133) | Auto-create service account. | bool
| | false
|
-| [trigger_config](variables.tf#L139) | Function trigger configuration. Leave null for HTTP trigger. | object({…})
| | null
|
-| [v2](variables.tf#L168) | Whether to use Cloud Function version 2nd Gen or 1st Gen. | bool
| | false
|
-| [vpc_connector](variables.tf#L149) | VPC connector configuration. Set create to 'true' if a new connector needs to be created. | object({…})
| | null
|
-| [vpc_connector_config](variables.tf#L159) | VPC connector network configuration. Must be provided if new VPC connector is being created. | object({…})
| | null
|
+| [build_worker_pool](variables.tf#L31) | Build worker pool, in projects//locations//workerPools/ format | string
| | null
|
+| [description](variables.tf#L46) | Optional description. | string
| | "Terraform managed."
|
+| [environment_variables](variables.tf#L52) | Cloud function environment variables. | map(string)
| | {}
|
+| [function_config](variables.tf#L58) | Cloud function configuration. | object({…})
| | {…}
|
+| [iam](variables.tf#L76) | IAM bindings for topic in {ROLE => [MEMBERS]} format. | map(list(string))
| | {}
|
+| [ingress_settings](variables.tf#L82) | Control traffic that reaches the cloud function. Allowed values are ALLOW_ALL, ALLOW_INTERNAL_AND_GCLB and ALLOW_INTERNAL_ONLY . | string
| | null
|
+| [labels](variables.tf#L88) | Resource labels. | map(string)
| | {}
|
+| [prefix](variables.tf#L99) | Optional prefix used for resource names. | string
| | null
|
+| [region](variables.tf#L110) | Region used for all resources. | string
| | "europe-west1"
|
+| [secrets](variables.tf#L116) | Secret Manager secrets. Key is the variable name or mountpoint, volume versions are in version:path format. | map(object({…}))
| | {}
|
+| [service_account](variables.tf#L128) | Service account email. Unused if service account is auto-created. | string
| | null
|
+| [service_account_create](variables.tf#L134) | Auto-create service account. | bool
| | false
|
+| [trigger_config](variables.tf#L140) | Function trigger configuration. Leave null for HTTP trigger. | object({…})
| | null
|
+| [v2](variables.tf#L169) | Whether to use Cloud Function version 2nd Gen or 1st Gen. | bool
| | false
|
+| [vpc_connector](variables.tf#L150) | VPC connector configuration. Set create to 'true' if a new connector needs to be created. | object({…})
| | null
|
+| [vpc_connector_config](variables.tf#L160) | VPC connector network configuration. Must be provided if new VPC connector is being created. | object({…})
| | null
|
## Outputs
From f514ab037102328b1e58b800759587d36d3aaddd Mon Sep 17 00:00:00 2001
From: maunope <44614195+maunope@users.noreply.github.com>
Date: Tue, 15 Nov 2022 14:48:48 +0100
Subject: [PATCH 08/13] Update README.md
restored 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 e38cbb65..60c4df86 100644
--- a/modules/cloud-function/README.md
+++ b/modules/cloud-function/README.md
@@ -159,6 +159,27 @@ module "cf-http" {
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
+```
+
+
+### Private Cloud Build Pool
+
+This deploys a Cloud Function with an HTTP endpoint, using a pre existing private Cloud Build worker pool.
+
```hcl
module "cf-http" {
source = "./fabric/modules/cloud-function"
From 09fba581a87309f546939ef4203b4c562639fec2 Mon Sep 17 00:00:00 2001
From: maunope <44614195+maunope@users.noreply.github.com>
Date: Tue, 15 Nov 2022 14:49:16 +0100
Subject: [PATCH 09/13] Update README.md
fix
---
modules/cloud-function/README.md | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git a/modules/cloud-function/README.md b/modules/cloud-function/README.md
index 60c4df86..e38cbb65 100644
--- a/modules/cloud-function/README.md
+++ b/modules/cloud-function/README.md
@@ -159,27 +159,6 @@ module "cf-http" {
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
-```
-
-
-### Private Cloud Build Pool
-
-This deploys a Cloud Function with an HTTP endpoint, using a pre existing private Cloud Build worker pool.
-
```hcl
module "cf-http" {
source = "./fabric/modules/cloud-function"
From 7c874660a859f0bc8932b2c4e6a9dcc2ba2ce3b7 Mon Sep 17 00:00:00 2001
From: Maurizio Noseda Pedraglio
Date: Tue, 15 Nov 2022 15:10:42 +0100
Subject: [PATCH 10/13] restored validation
---
modules/cloud-function/variables.tf | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/cloud-function/variables.tf b/modules/cloud-function/variables.tf
index 5989d2bd..796b230e 100644
--- a/modules/cloud-function/variables.tf
+++ b/modules/cloud-function/variables.tf
@@ -100,6 +100,10 @@ variable "prefix" {
description = "Optional prefix used for resource names."
type = string
default = null
+ validation {
+ condition = var.prefix != ""
+ error_message = "Prefix cannot be empty, please use null instead."
+ }
}
variable "project_id" {
From 4cbf0272f9c7dd7697f9cd0b5b6dbe26eb967bec Mon Sep 17 00:00:00 2001
From: Maurizio Noseda Pedraglio
Date: Tue, 15 Nov 2022 15:12:50 +0100
Subject: [PATCH 11/13] linting
---
modules/cloud-function/README.md | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/modules/cloud-function/README.md b/modules/cloud-function/README.md
index e38cbb65..323b3333 100644
--- a/modules/cloud-function/README.md
+++ b/modules/cloud-function/README.md
@@ -183,7 +183,7 @@ module "cf-http" {
| [bucket_name](variables.tf#L26) | Name of the bucket that will be used for the function code. It will be created with prefix prepended if bucket_config is not null. | string
| ✓ | |
| [bundle_config](variables.tf#L37) | Cloud function source folder and generated zip bundle paths. Output path defaults to '/tmp/bundle.zip' if null. | object({…})
| ✓ | |
| [name](variables.tf#L94) | Name used for cloud function and associated resources. | string
| ✓ | |
-| [project_id](variables.tf#L105) | Project id used for all resources. | string
| ✓ | |
+| [project_id](variables.tf#L109) | Project id used for all resources. | string
| ✓ | |
| [bucket_config](variables.tf#L17) | Enable and configure auto-created bucket. Set fields to null to use defaults. | object({…})
| | null
|
| [build_worker_pool](variables.tf#L31) | Build worker pool, in projects//locations//workerPools/ format | string
| | null
|
| [description](variables.tf#L46) | Optional description. | string
| | "Terraform managed."
|
@@ -193,14 +193,14 @@ module "cf-http" {
| [ingress_settings](variables.tf#L82) | Control traffic that reaches the cloud function. Allowed values are ALLOW_ALL, ALLOW_INTERNAL_AND_GCLB and ALLOW_INTERNAL_ONLY . | string
| | null
|
| [labels](variables.tf#L88) | Resource labels. | map(string)
| | {}
|
| [prefix](variables.tf#L99) | Optional prefix used for resource names. | string
| | null
|
-| [region](variables.tf#L110) | Region used for all resources. | string
| | "europe-west1"
|
-| [secrets](variables.tf#L116) | Secret Manager secrets. Key is the variable name or mountpoint, volume versions are in version:path format. | map(object({…}))
| | {}
|
-| [service_account](variables.tf#L128) | Service account email. Unused if service account is auto-created. | string
| | null
|
-| [service_account_create](variables.tf#L134) | Auto-create service account. | bool
| | false
|
-| [trigger_config](variables.tf#L140) | Function trigger configuration. Leave null for HTTP trigger. | object({…})
| | null
|
-| [v2](variables.tf#L169) | Whether to use Cloud Function version 2nd Gen or 1st Gen. | bool
| | false
|
-| [vpc_connector](variables.tf#L150) | VPC connector configuration. Set create to 'true' if a new connector needs to be created. | object({…})
| | null
|
-| [vpc_connector_config](variables.tf#L160) | VPC connector network configuration. Must be provided if new VPC connector is being created. | object({…})
| | null
|
+| [region](variables.tf#L114) | Region used for all resources. | string
| | "europe-west1"
|
+| [secrets](variables.tf#L120) | Secret Manager secrets. Key is the variable name or mountpoint, volume versions are in version:path format. | map(object({…}))
| | {}
|
+| [service_account](variables.tf#L132) | Service account email. Unused if service account is auto-created. | string
| | null
|
+| [service_account_create](variables.tf#L138) | Auto-create service account. | bool
| | false
|
+| [trigger_config](variables.tf#L144) | Function trigger configuration. Leave null for HTTP trigger. | object({…})
| | null
|
+| [v2](variables.tf#L173) | Whether to use Cloud Function version 2nd Gen or 1st Gen. | bool
| | false
|
+| [vpc_connector](variables.tf#L154) | VPC connector configuration. Set create to 'true' if a new connector needs to be created. | object({…})
| | null
|
+| [vpc_connector_config](variables.tf#L164) | VPC connector network configuration. Must be provided if new VPC connector is being created. | object({…})
| | null
|
## Outputs
From a47726741d7de2116da2205abb7985e6aa0dc66c Mon Sep 17 00:00:00 2001
From: Maurizio Noseda Pedraglio
Date: Tue, 15 Nov 2022 15:42:10 +0100
Subject: [PATCH 12/13] enablid tests
---
modules/cloud-function/README.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/modules/cloud-function/README.md b/modules/cloud-function/README.md
index 323b3333..4f69ee3e 100644
--- a/modules/cloud-function/README.md
+++ b/modules/cloud-function/README.md
@@ -172,7 +172,6 @@ module "cf-http" {
excludes = null
}
}
-# tftest skip
```
From b2bd0009b9fc2a4ce46876bc1d28f4178c241632 Mon Sep 17 00:00:00 2001
From: Maurizio Noseda Pedraglio
Date: Tue, 15 Nov 2022 16:21:23 +0100
Subject: [PATCH 13/13] restored tfskip
---
modules/cloud-function/README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/cloud-function/README.md b/modules/cloud-function/README.md
index 4f69ee3e..323b3333 100644
--- a/modules/cloud-function/README.md
+++ b/modules/cloud-function/README.md
@@ -172,6 +172,7 @@ module "cf-http" {
excludes = null
}
}
+# tftest skip
```