Manages an Amazon Managed Streaming for Kafka configuration. More information can be found on the MSK Developer Guide.
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
}
This resource supports the following arguments:
server_properties
- (Required) Contents of the server.properties file. Supported properties are documented in the MSK Developer Guide.kafka_versions
- (Optional) List of Apache Kafka versions which can use this configuration.name
- (Required) Name of the configuration.description
- (Optional) Description of the configuration.This resource exports the following attributes in addition to the arguments above:
arn
- Amazon Resource Name (ARN) of the configuration.latest_revision
- Latest revision of the configuration.In Terraform v1.5.0 and later, use an import
block to import MSK configurations using the configuration ARN. For example:
import {
to = aws_msk_configuration.example
id = "arn:aws:kafka:us-west-2:123456789012:configuration/example/279c0212-d057-4dba-9aa9-1c4e5a25bfc7-3"
}
Using terraform import
, import MSK configurations using the configuration ARN. For example:
% terraform import aws_msk_configuration.example arn:aws:kafka:us-west-2:123456789012:configuration/example/279c0212-d057-4dba-9aa9-1c4e5a25bfc7-3