Description
AWS::MSK::Cluster identifies a provisioned Kafka cluster in the inventory.
Potential impact
Missing producer and consumer records make it harder to trace a delivery failure or review broker access.
Remediation
Record the owner, producers and consumers. Review broker connectivity, authentication, encryption and monitoring.
Examples
The excerpts disable public access on an existing eligible cluster. Public access can be enabled only after creation. Supply a supported KafkaVersion and three ClientSubnets in different AZs. Test private connectivity and IAM access before switching clients.
Before
yaml
Resources:
TestCluster:
Type: AWS::MSK::Cluster
Properties:
ClusterName: ClusterWithAllProperties
KafkaVersion: !Ref KafkaVersion
NumberOfBrokerNodes: 3
ClientAuthentication:
Sasl:
Iam:
Enabled: true
Unauthenticated:
Enabled: false
EncryptionInfo:
EncryptionInTransit:
ClientBroker: TLS
InCluster: true
BrokerNodeGroupInfo:
InstanceType: kafka.m5.large
ClientSubnets: !Ref ClientSubnets
ConnectivityInfo:
PublicAccess:
Type: SERVICE_PROVIDED_EIPS
After
yaml
Resources:
TestCluster:
Type: AWS::MSK::Cluster
Properties:
ClusterName: ClusterWithAllProperties
KafkaVersion: !Ref KafkaVersion
NumberOfBrokerNodes: 3
ClientAuthentication:
Sasl:
Iam:
Enabled: true
Unauthenticated:
Enabled: false
EncryptionInfo:
EncryptionInTransit:
ClientBroker: TLS
InCluster: true
BrokerNodeGroupInfo:
InstanceType: kafka.m5.large
ClientSubnets: !Ref ClientSubnets
ConnectivityInfo:
PublicAccess:
Type: DISABLED