CmdID

CmdID / Commands

aws-kafka

Manage an Amazon MSK (Managed Streaming for Apache Kafka) cluster. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Create a new MSK cluster

aws kafka create-cluster --cluster-name cluster_name --broker-node-group-info instanceType=instance_type,clientSubnets=subnet_id1 subnet_id2 ... --kafka-version version --number-of-broker-nodes numberIdentify
--cluster-nameThe name of the cluster. AWS CLI reference
--broker-node-group-infoInformation about the broker nodes in the cluster. AWS CLI reference
--kafka-versionThe version of Apache Kafka. AWS CLI reference
--number-of-broker-nodesThe number of broker nodes in the cluster. AWS CLI reference

Describe an MSK cluster

aws kafka describe-cluster --cluster-arn cluster_arnIdentify
--cluster-arnThe Amazon Resource Name (ARN) that uniquely identifies the cluster. AWS CLI reference

List all MSK clusters in the current region

aws kafka list-clustersIdentify

Create a new MSK configuration

aws kafka create-configuration --name configuration_name --server-properties file://path/to/configuration_file.txtIdentify
--nameThe name of the configuration. AWS CLI reference
--server-propertiesContents of the server.properties file. AWS CLI reference

Describe an MSK configuration

aws kafka describe-configuration --arn configuration_arnIdentify
--arnThe Amazon Resource Name (ARN) that uniquely identifies an MSK configuration and all of its revisions. AWS CLI reference

List all MSK configurations in the current region

aws kafka list-configurationsIdentify

Update the MSK cluster configuration

aws kafka update-cluster-configuration --cluster-arn cluster_arn --configuration-info arn=configuration_arn,revision=configuration_revisionIdentify
--cluster-arnThe Amazon Resource Name (ARN) that uniquely identifies the cluster. AWS CLI reference
--configuration-infoRepresents the configuration that you want MSK to use for the brokers in a cluster. AWS CLI reference

Delete the MSK cluster

aws kafka delete-cluster --cluster-arn cluster_arnIdentify
--cluster-arnThe Amazon Resource Name (ARN) that uniquely identifies the cluster. AWS CLI reference