AWS Fundamentals Logo
AWS Fundamentals
AWS::MSK::Topic

MSK Topic

Resource Type definition for AWS::MSK::Topic

Properties

5 configurable properties. 4 required. Click a row to see details.

Filter:
PropertyTypeFlags
ClusterArn
string
RequiredCreate-only
PartitionCount
integer
Required
ReplicationFactor
integer
RequiredCreate-only
TopicName
string
RequiredCreate-only
Configs
string
Write-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
TopicArnstringThe Amazon Resource Name (ARN) of the topic

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
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: 1

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

kafka-cluster:Connectkafka-cluster:DescribeTopickafka-cluster:DescribeTopicDynamicConfigurationkafka-cluster:CreateTopic

read

kafka-cluster:Connectkafka-cluster:DescribeTopickafka-cluster:DescribeTopicDynamicConfiguration

update

kafka-cluster:Connectkafka-cluster:DescribeTopickafka-cluster:AlterTopickafka-cluster:AlterTopicDynamicConfiguration

delete

kafka-cluster:Connectkafka-cluster:DescribeTopickafka-cluster:DescribeTopicDynamicConfigurationkafka-cluster:DeleteTopic

list

kafka-cluster:Connectkafka-cluster:DescribeTopic

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceMSK
Properties6
Required4
TaggingNot supported
Primary IDTopicArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

ClusterArnTopicNameReplicationFactor

External Links