Skip to content

Commit 3bea370

Browse files
Chris LeiblChris Leibl
andauthored
feat: add vpc serverless connnector argument to module, update docs (#57)
Co-authored-by: Chris Leibl <[email protected]>
1 parent 1867aba commit 3bea370

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ module "localhost_function" {
7171
| source\_dependent\_files | A list of any Terraform created `local_file`s that the module will wait for before creating the archive. | object | `<list>` | no |
7272
| source\_directory | The pathname of the directory which contains the function source code. | string | n/a | yes |
7373
| timeout\_s | The amount of time in seconds allotted for the execution of the function. | number | `"60"` | no |
74+
| vpc\_connector | The VPC Network Connector that this cloud function can connect to. It should be set up as fully-qualified URI. The format of this field is projects/*/locations/*/connectors/*. | string | `"null"` | no |
7475

7576
## Outputs
7677

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ resource "google_cloudfunctions_function" "main" {
7474
timeout = var.timeout_s
7575
entry_point = var.entry_point
7676
ingress_settings = var.ingress_settings
77+
vpc_connector = var.vpc_connector
7778

7879
event_trigger {
7980
event_type = var.event_trigger["event_type"]

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,9 @@ variable "ingress_settings" {
129129
default = "ALLOW_ALL"
130130
description = "The ingress settings for the function"
131131
}
132+
133+
variable "vpc_connector" {
134+
type = string
135+
default = null
136+
description = "The VPC Network Connector that this cloud function can connect to. It should be set up as fully-qualified URI. The format of this field is projects/*/locations/*/connectors/*."
137+
}

0 commit comments

Comments
 (0)