Provides an Amazon MSK Connect Worker Configuration Resource.
resource "aws_mskconnect_worker_configuration" "example" {
name = "example"
properties_file_content = <<EOT
key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter
EOT
}
The following arguments are required:
name
- (Required) The name of the worker configuration.properties_file_content
- (Required) Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.The following arguments are optional:
description
- (Optional) A summary description of the worker configuration.This resource exports the following attributes in addition to the arguments above:
arn
- the Amazon Resource Name (ARN) of the worker configuration.latest_revision
- an ID of the latest successfully created revision of the worker configuration.In Terraform v1.5.0 and later, use an import
block to import MSK Connect Worker Configuration using the plugin's arn
. For example:
import {
to = aws_mskconnect_worker_configuration.example
id = "arn:aws:kafkaconnect:eu-central-1:123456789012:worker-configuration/example/8848493b-7fcc-478c-a646-4a52634e3378-4"
}
Using terraform import
, import MSK Connect Worker Configuration using the plugin's arn
. For example:
% terraform import aws_mskconnect_worker_configuration.example 'arn:aws:kafkaconnect:eu-central-1:123456789012:worker-configuration/example/8848493b-7fcc-478c-a646-4a52634e3378-4'