From 4cda94c185c46784afe096761275bdca37f914c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Niesiob=C4=99dzki?= Date: Mon, 4 Nov 2024 09:19:21 +0000 Subject: [PATCH] Better fix for ffa2602 --- blueprints/apigee/bigquery-analytics/main.tf | 1 - modules/gcs/README.md | 2 +- modules/gcs/variables.tf | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/blueprints/apigee/bigquery-analytics/main.tf b/blueprints/apigee/bigquery-analytics/main.tf index 51f9a13f2..d1534ad77 100644 --- a/blueprints/apigee/bigquery-analytics/main.tf +++ b/blueprints/apigee/bigquery-analytics/main.tf @@ -143,7 +143,6 @@ module "bucket_export" { ] } notification_config = { - create_topic = {} enabled = true payload_format = "JSON_API_V1" sa_email = module.project.service_agents.storage.email diff --git a/modules/gcs/README.md b/modules/gcs/README.md index 2964f73f8..81103d25b 100644 --- a/modules/gcs/README.md +++ b/modules/gcs/README.md @@ -326,7 +326,7 @@ module "bucket" { | [lifecycle_rules](variables.tf#L107) | Bucket lifecycle rule. | map(object({…})) | | {} | | [logging_config](variables.tf#L162) | Bucket logging configuration. | object({…}) | | null | | [managed_folders](variables.tf#L171) | Managed folders to create within the bucket in {PATH => CONFIG} format. | map(object({…})) | | {} | -| [notification_config](variables.tf#L204) | GCS Notification configuration. | object({…}) | | null | +| [notification_config](variables.tf#L204) | GCS Notification configuration. | object({…}) | | null | | [objects_to_upload](variables.tf#L221) | Objects to be uploaded to bucket. | map(object({…})) | | {} | | [prefix](variables.tf#L247) | Optional prefix used to generate the bucket name. | string | | null | | [public_access_prevention](variables.tf#L262) | Prevents public access to the bucket. | string | | null | diff --git a/modules/gcs/variables.tf b/modules/gcs/variables.tf index 2c81dd169..56958721a 100644 --- a/modules/gcs/variables.tf +++ b/modules/gcs/variables.tf @@ -210,7 +210,7 @@ variable "notification_config" { topic_name = string create_topic = optional(object({ kms_key_id = optional(string) - })) + }), {}) event_types = optional(list(string)) custom_attributes = optional(map(string)) object_name_prefix = optional(string)