diff --git a/modules/topic-schema/resources.tf b/modules/topic-schema/resources.tf index a1c0665..ad5b7ec 100644 --- a/modules/topic-schema/resources.tf +++ b/modules/topic-schema/resources.tf @@ -2,5 +2,10 @@ resource "google_pubsub_topic" "topic" { name = var.topic_name labels = var.labels + schema_settings { + schema = var.schema + encoding = var.schema_encoding + } + message_retention_duration = var.message_retention_duration } \ No newline at end of file