You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-28Lines changed: 31 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,10 @@ configures a function sourced from a Cloud Source Repositories
14
14
repository.
15
15
16
16
## Compatibility
17
-
This module is meant for use with Terraform 0.13. If you haven't
18
-
[upgraded](https://www.terraform.io/upgrade-guides/0-13.html) and need a Terraform
17
+
This module is meant for use with Terraform 0.13+ and tested using Terraform 1.0+.
18
+
If you find incompatibilities using Terraform `>=0.13`, please open an issue.
19
+
20
+
If you haven't [upgraded][terraform-0.13-upgrade] and need a Terraform
19
21
0.12.x-compatible version of this module, the last released version
20
22
intended for Terraform 0.12.x is [v1.5.0](https://registry.terraform.io/modules/terraform-google-modules/-event-function/google/v1.5.0).
21
23
@@ -50,32 +52,32 @@ module "localhost_function" {
50
52
## Inputs
51
53
52
54
| Name | Description | Type | Default | Required |
53
-
|------|-------------|:----:|:-----:|:-----:|
54
-
| available\_memory\_mb | The amount of memory in megabytes allotted for the function to use. | number |`"256"`| no |
55
-
| bucket\_force\_destroy | When deleting the GCS bucket containing the cloud function, delete all objects in the bucket first. | bool |`"false"`| no |
56
-
| bucket\_labels | A set of key/value label pairs to assign to the function source archive bucket. | map(string) |`<map>`| no |
57
-
| bucket\_name | The name to apply to the bucket. Will default to a string of the function name. | string |`""`| no |
58
-
| create\_bucket | Whether to create a new bucket or use an existing one. If false, `bucket_name` should reference the name of the alternate bucket to use. | bool |`"true"`| no |
59
-
| description | The description of the function. | string |`"Processes events."`| no |
60
-
| entry\_point | The name of a method in the function source which will be invoked when the function is executed. | string | n/a | yes |
61
-
| environment\_variables | A set of key/value environment variable pairs to assign to the function. | map(string) |`<map>`| no |
62
-
| event\_trigger | A source that fires events in response to a condition in another service. | map(string) |`<map>`| no |
63
-
| event\_trigger\_failure\_policy\_retry | A toggle to determine if the function should be retried on failure. | bool |`"false"`| no |
64
-
| files\_to\_exclude\_in\_source\_dir | Specify files to ignore when reading the source_dir| list(string) |`<list>`| no |
65
-
| ingress\_settings | The ingress settings for the function. Allowed values are ALLOW_ALL, ALLOW_INTERNAL_AND_GCLB and ALLOW_INTERNAL_ONLY. Changes to this field will recreate the cloud function. | string |`"ALLOW_ALL"`| no |
66
-
| labels | A set of key/value label pairs to assign to the Cloud Function. | map(string) |`<map>`| no |
67
-
| max\_instances | The maximum number of parallel executions of the function. | number |`"0"`| no |
68
-
| name | The name to apply to any nameable resources. | string | n/a | yes |
69
-
| project\_id | The ID of the project to which resources will be applied. | string | n/a | yes |
70
-
| region | The region in which resources will be applied. | string | n/a | yes |
71
-
| runtime | The runtime in which the function will be executed. | string | n/a | yes |
72
-
| service\_account\_email | The service account to run the function as. | string |`""`| no |
73
-
| 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 |
74
-
| source\_directory | The pathname of the directory which contains the function source code. | string | n/a | yes |
75
-
| timeout\_s | The amount of time in seconds allotted for the execution of the function. | number |`"60"`| no |
76
-
| trigger\_http | Wheter to use HTTP trigger instead of the event trigger. | bool |`"null"`| no |
77
-
| 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 |
78
-
| vpc\_connector\_egress\_settings | The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are ALL_TRAFFIC and PRIVATE_RANGES_ONLY. If unset, this field preserves the previously set value. | string |`"null"`| no |
| available\_memory\_mb | The amount of memory in megabytes allotted for the function to use. |`number`|`256`| no |
57
+
| bucket\_force\_destroy | When deleting the GCS bucket containing the cloud function, delete all objects in the bucket first. |`bool`|`false`| no |
58
+
| bucket\_labels | A set of key/value label pairs to assign to the function source archive bucket. |`map(string)`|`{}`| no |
59
+
| bucket\_name | The name to apply to the bucket. Will default to a string of the function name. |`string`|`""`| no |
60
+
| create\_bucket | Whether to create a new bucket or use an existing one. If false, `bucket_name` should reference the name of the alternate bucket to use. |`bool`|`true`| no |
61
+
| description | The description of the function. |`string`|`"Processes events."`| no |
62
+
| entry\_point | The name of a method in the function source which will be invoked when the function is executed. |`string`| n/a | yes |
63
+
| environment\_variables | A set of key/value environment variable pairs to assign to the function. |`map(string)`|`{}`| no |
64
+
| event\_trigger | A source that fires events in response to a condition in another service. |`map(string)`|`{}`| no |
65
+
| event\_trigger\_failure\_policy\_retry | A toggle to determine if the function should be retried on failure. |`bool`|`false`| no |
66
+
| files\_to\_exclude\_in\_source\_dir | Specify files to ignore when reading the source\_dir|`list(string)`|`[]`| no |
67
+
| ingress\_settings | The ingress settings for the function. Allowed values are ALLOW\_ALL, ALLOW\_INTERNAL\_AND\_GCLB and ALLOW\_INTERNAL\_ONLY. Changes to this field will recreate the cloud function. |`string`|`"ALLOW_ALL"`| no |
68
+
| labels | A set of key/value label pairs to assign to the Cloud Function. |`map(string)`|`{}`| no |
69
+
| max\_instances | The maximum number of parallel executions of the function. |`number`|`0`| no |
70
+
| name | The name to apply to any nameable resources. |`string`| n/a | yes |
71
+
| project\_id | The ID of the project to which resources will be applied. |`string`| n/a | yes |
72
+
| region | The region in which resources will be applied. |`string`| n/a | yes |
73
+
| runtime | The runtime in which the function will be executed. |`string`| n/a | yes |
74
+
| service\_account\_email | The service account to run the function as. |`string`|`""`| no |
75
+
| source\_dependent\_files | A list of any Terraform created `local_file`s that the module will wait for before creating the archive. |<pre>list(object({<br> filename = string<br> id = string<br> }))</pre> |`[]`| no |
76
+
| source\_directory | The pathname of the directory which contains the function source code. |`string`| n/a | yes |
77
+
| timeout\_s | The amount of time in seconds allotted for the execution of the function. |`number`|`60`| no |
78
+
| trigger\_http | Wheter to use HTTP trigger instead of the event trigger. |`bool`|`null`| no |
79
+
| 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 |
80
+
| vpc\_connector\_egress\_settings | The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are ALL\_TRAFFIC and PRIVATE\_RANGES\_ONLY. If unset, this field preserves the previously set value. |`string`|`null`| no |
79
81
80
82
## Outputs
81
83
@@ -131,3 +133,4 @@ information on contributing to this module.
0 commit comments