AWS::MSK::TopicResource Type definition for AWS::MSK::Topic
5 configurable properties. 4 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ClusterArn | string | RequiredCreate-only |
PartitionCount | integer | Required |
ReplicationFactor | integer | RequiredCreate-only |
TopicName | string | RequiredCreate-only |
Configs | string | Write-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
TopicArn | string | The Amazon Resource Name (ARN) of the topic |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::MSK::Topic
Resources:
MyResource:
Type: AWS::MSK::Topic
Properties:
ClusterArn: "arn:aws:service:region:account:resource"
TopicName: "my-topicname"
PartitionCount: 1
ReplicationFactor: 1Permissions CloudFormation needs in your IAM role to manage this resource.
kafka-cluster:Connectkafka-cluster:DescribeTopickafka-cluster:DescribeTopicDynamicConfigurationkafka-cluster:CreateTopickafka-cluster:Connectkafka-cluster:DescribeTopickafka-cluster:DescribeTopicDynamicConfigurationkafka-cluster:Connectkafka-cluster:DescribeTopickafka-cluster:AlterTopickafka-cluster:AlterTopicDynamicConfigurationkafka-cluster:Connectkafka-cluster:DescribeTopickafka-cluster:DescribeTopicDynamicConfigurationkafka-cluster:DeleteTopickafka-cluster:Connectkafka-cluster:DescribeTopicOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterTopicArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ClusterArnTopicNameReplicationFactor