Fix in event_filters of trigger_config
This commit is contained in:
parent
d46312a7f1
commit
cf567b0c43
|
@ -229,7 +229,7 @@ module "cf-http-two" {
|
|||
| [secrets](variables.tf#L122) | Secret Manager secrets. Key is the variable name or mountpoint, volume versions are in version:path format. | <code title="map(object({ is_volume = bool project_id = number secret = string versions = list(string) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [service_account](variables.tf#L134) | Service account email. Unused if service account is auto-created. | <code>string</code> | | <code>null</code> |
|
||||
| [service_account_create](variables.tf#L140) | Auto-create service account. | <code>bool</code> | | <code>false</code> |
|
||||
| [trigger_config](variables.tf#L146) | Function trigger configuration. Leave null for HTTP trigger. | <code title="object({ event_type = string pubsub_topic = optional(string) region = optional(string) event_filters = optional(list(object({ attribute = string value = string operator = string })), []) service_account_email = optional(string) service_account_create = optional(bool, false) retry_policy = optional(string) })">object({…})</code> | | <code>null</code> |
|
||||
| [trigger_config](variables.tf#L146) | Function trigger configuration. Leave null for HTTP trigger. | <code title="object({ event_type = string pubsub_topic = optional(string) region = optional(string) event_filters = optional(list(object({ attribute = string value = string operator = optional(string) })), []) service_account_email = optional(string) service_account_create = optional(bool, false) retry_policy = optional(string) })">object({…})</code> | | <code>null</code> |
|
||||
| [vpc_connector](variables.tf#L164) | VPC connector configuration. Set create to 'true' if a new connector needs to be created. | <code title="object({ create = bool name = string egress_settings = string })">object({…})</code> | | <code>null</code> |
|
||||
| [vpc_connector_config](variables.tf#L174) | VPC connector network configuration. Must be provided if new VPC connector is being created. | <code title="object({ ip_cidr_range = string network = string })">object({…})</code> | | <code>null</code> |
|
||||
|
||||
|
|
|
@ -99,9 +99,9 @@ resource "google_cloudfunctions2_function" "function" {
|
|||
for_each = var.trigger_config.event_filters
|
||||
iterator = event_filter
|
||||
content {
|
||||
attribute = event_filter.attribute
|
||||
value = event_filter.value
|
||||
operator = event_filter.operator
|
||||
attribute = event_filter.value.attribute
|
||||
value = event_filter.value.value
|
||||
operator = event_filter.value.operator
|
||||
}
|
||||
}
|
||||
service_account_email = var.trigger_config.service_account_email
|
||||
|
|
|
@ -152,7 +152,7 @@ variable "trigger_config" {
|
|||
event_filters = optional(list(object({
|
||||
attribute = string
|
||||
value = string
|
||||
operator = string
|
||||
operator = optional(string)
|
||||
})), [])
|
||||
service_account_email = optional(string)
|
||||
service_account_create = optional(bool, false)
|
||||
|
|
Loading…
Reference in New Issue