diff --git a/indexer/msk.tf b/indexer/msk.tf index d667932c..29b01758 100644 --- a/indexer/msk.tf +++ b/indexer/msk.tf @@ -1,6 +1,8 @@ resource "aws_msk_configuration" "main" { - kafka_versions = [local.kafka_version] - name = "${var.environment}-${var.indexers[var.region].name}-msk-configuration" + kafka_versions = [local.kafka_version] + // create_before_destroy=true forces a new name because the old resource not delete first. For now we only trigger + // replacement for new kafka versions, so use the kafka version in the name + name = "${var.environment}-${var.indexers[var.region].name}-msk-configuration-${replace(local.kafka_version, ".", "-")}" server_properties = <