Skip to content

Commit

Permalink
Facilitate error-free MSK upgrades (#86)
Browse files Browse the repository at this point in the history
* Facilitate error-free MSK upgrades

* Auto Format

---------

Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com>
  • Loading branch information
3 people authored May 17, 2023
1 parent f9258f7 commit e6f9b0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit e6f9b0a

Please sign in to comment.