Provides an Amazon MSK Connect Custom Plugin Resource.
resource "aws_s3_bucket" "example" {
bucket = "example"
}
resource "aws_s3_object" "example" {
bucket = aws_s3_bucket.example.id
key = "debezium.zip"
source = "debezium.zip"
}
resource "aws_mskconnect_custom_plugin" "example" {
name = "debezium-example"
content_type = "ZIP"
location {
s3 {
bucket_arn = aws_s3_bucket.example.arn
file_key = aws_s3_object.example.key
}
}
}
The following arguments are required:
name
- (Required) The name of the custom plugin..content_type
- (Required) The type of the plugin file. Allowed values are ZIP
and JAR
.location
- (Required) Information about the location of a custom plugin. See below.The following arguments are optional:
description
- (Optional) A summary description of the custom plugin.s3
- (Required) Information of the plugin file stored in Amazon S3. See below.bucket_arn
- (Required) The Amazon Resource Name (ARN) of an S3 bucket.file_key
- (Required) The file key for an object in an S3 bucket.object_version
- (Optional) The version of an object in an S3 bucket.This resource exports the following attributes in addition to the arguments above:
arn
- the Amazon Resource Name (ARN) of the custom plugin.latest_revision
- an ID of the latest successfully created revision of the custom plugin.state
- the state of the custom plugin.create
- (Default 10m
)delete
- (Default 10m
)In Terraform v1.5.0 and later, use an import
block to import MSK Connect Custom Plugin using the plugin's arn
. For example:
import {
to = aws_mskconnect_custom_plugin.example
id = "arn:aws:kafkaconnect:eu-central-1:123456789012:custom-plugin/debezium-example/abcdefgh-1234-5678-9abc-defghijklmno-4"
}
Using terraform import
, import MSK Connect Custom Plugin using the plugin's arn
. For example:
% terraform import aws_mskconnect_custom_plugin.example 'arn:aws:kafkaconnect:eu-central-1:123456789012:custom-plugin/debezium-example/abcdefgh-1234-5678-9abc-defghijklmno-4'