Skip to main content

replicators

Creates, updates, deletes or gets a replicator resource or lists replicators in a region

Overview

Namereplicators
TypeResource
DescriptionResource Type definition for AWS::MSK::Replicator
Idaws.msk.replicators

Fields

NameDatatypeDescription
replicator_arnstringAmazon Resource Name for the created replicator.
replicator_namestringThe name of the replicator.
current_versionstringThe current version of the MSK replicator.
descriptionstringA summary description of the replicator.
kafka_clustersarraySpecifies a list of Kafka clusters which are targets of the replicator.
replication_info_listarrayA list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
service_execution_role_arnstringThe Amazon Resource Name (ARN) of the IAM role used by the replicator to access external resources.
tagsarrayA collection of tags associated with a resource
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTReplicatorName, ReplicationInfoList, KafkaClusters, ServiceExecutionRoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all replicators in a region.

SELECT
region,
replicator_arn,
replicator_name,
current_version,
description,
kafka_clusters,
replication_info_list,
service_execution_role_arn,
tags
FROM aws.msk.replicators
WHERE region = 'us-east-1';

Gets all properties from an individual replicator.

SELECT
region,
replicator_arn,
replicator_name,
current_version,
description,
kafka_clusters,
replication_info_list,
service_execution_role_arn,
tags
FROM aws.msk.replicators
WHERE region = 'us-east-1' AND data__Identifier = '<ReplicatorArn>';

INSERT example

Use the following StackQL query and manifest file to create a new replicator resource, using stack-deploy.

/*+ create */
INSERT INTO aws.msk.replicators (
ReplicatorName,
KafkaClusters,
ReplicationInfoList,
ServiceExecutionRoleArn,
region
)
SELECT
'{{ ReplicatorName }}',
'{{ KafkaClusters }}',
'{{ ReplicationInfoList }}',
'{{ ServiceExecutionRoleArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.msk.replicators
WHERE data__Identifier = '<ReplicatorArn>'
AND region = 'us-east-1';

Permissions

To operate on the replicators resource, the following permissions are required:

Create

ec2:CreateNetworkInterface,
ec2:DescribeSecurityGroups,
ec2:DescribeSubnets,
ec2:DescribeVpcs,
iam:CreateServiceLinkedRole,
iam:PassRole,
kafka:CreateReplicator,
kafka:CreateReplicatorReference,
kafka:DescribeClusterV2,
kafka:DescribeReplicator,
kafka:GetBootstrapBrokers,
kafka:ListTagsForResource,
kafka:TagResource

Read

kafka:DescribeReplicator,
kafka:ListTagsForResource

Update

kafka:DescribeReplicator,
kafka:ListTagsForResource,
kafka:TagResource,
kafka:UntagResource,
kafka:UpdateReplicationInfo

Delete

kafka:DeleteReplicator,
kafka:DescribeReplicator,
kafka:ListTagsForResource,
kafka:UntagResource

List

kafka:ListReplicators