diff --git a/main.tf b/main.tf index 19a15f4..b31fb8a 100644 --- a/main.tf +++ b/main.tf @@ -115,10 +115,14 @@ resource "aws_msk_configuration" "config" { count = local.enabled ? 1 : 0 kafka_versions = [var.kafka_version] - name = module.this.id + name = join("-", [module.this.id, replace(var.kafka_version, ".", "-")]) description = "Manages an Amazon Managed Streaming for Kafka configuration" server_properties = join("\n", [for k in keys(var.properties) : format("%s = %s", k, var.properties[k])]) + + lifecycle { + create_before_destroy = true + } } resource "aws_msk_cluster" "default" {