» Resource: aws_msk_configuration

Manages an Amazon Managed Streaming for Kafka configuration. More information can be found on the MSK Developer Guide.

» Example Usage

resource "aws_msk_configuration" "example" {
  kafka_versions = ["2.1.0"]
  name           = "example"

  server_properties = <<PROPERTIES
auto.create.topics.enable = true
delete.topic.enable = true
PROPERTIES
}

» Argument Reference

The following arguments are supported:

  • server_properties - (Required) Contents of the server.properties file. Supported properties are documented in the MSK Developer Guide.
  • kafka_versions - (Required) List of Apache Kafka versions which can use this configuration.
  • name - (Required) Name of the configuration.
  • description - (Optional) Description of the configuration.

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - Amazon Resource Name (ARN) of the configuration.
  • latest_revision - Latest revision of the configuration.

» Import

MSK configurations can be imported using the configuration ARN, e.g.

$ terraform import aws_msk_cluster.example arn:aws:kafka:us-west-2:123456789012:configuration/example/279c0212-d057-4dba-9aa9-1c4e5a25bfc7-3