HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3/dist-packages/awscli/examples/kafka/list-clusters.rst
**To list the available clusters**

The following ``list-clusters`` example lists the Amazon MSK clusters in your AWS account. ::

    aws kafka list-clusters

Output::

    {
        "ClusterInfoList": [
            {
                "BrokerNodeGroupInfo": {
                    "BrokerAZDistribution": "DEFAULT",
                    "ClientSubnets": [
                        "subnet-cbfff283",
                        "subnet-6746046b"
                    ],
                    "InstanceType": "kafka.m5.large",
                    "SecurityGroups": [
                        "sg-f839b688"
                    ],
                    "StorageInfo": {
                        "EbsStorageInfo": {
                            "VolumeSize": 100
                        }
                    }
                },
                "ClusterArn": "arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5",
                "ClusterName": "demo-cluster-1",
                "CreationTime": "2020-07-09T02:31:36.223000+00:00",
                "CurrentBrokerSoftwareInfo": {
                    "KafkaVersion": "2.2.1"
                },
                "CurrentVersion": "K3AEGXETSR30VB",
                "EncryptionInfo": {
                    "EncryptionAtRest": {
                        "DataVolumeKMSKeyId": "arn:aws:kms:us-east-1:123456789012:key/a7ca56d5-0768-4b64-a670-339a9fbef81c"
                    },
                    "EncryptionInTransit": {
                        "ClientBroker": "TLS_PLAINTEXT",
                        "InCluster": true
                    }
                },
                "EnhancedMonitoring": "DEFAULT",
                "OpenMonitoring": {
                    "Prometheus": {
                        "JmxExporter": {
                            "EnabledInBroker": false
                        },
                        "NodeExporter": {
                            "EnabledInBroker": false
                        }
                    }
                },
                "NumberOfBrokerNodes": 2,
                "State": "ACTIVE",
                "Tags": {},
                "ZookeeperConnectString": "z-2.demo-cluster-1.xuy0sb.c5.kafka.us-east-1.amazonaws.com:2181,z-1.demo-cluster-1.xuy0sb.c5.kafka.us-east-1.amazonaws.com:2181,z-3.demo-cluster-1.xuy0sb.c5.kafka.us-east-1.amazonaws.com:2181"
            }
        ]
    }

For more information, see `Listing Amazon MSK Clusters <https://docs.aws.amazon.com/msk/latest/developerguide/msk-list-clusters.html>`__ in the *Amazon Managed Streaming for Apache Kafka Developer Guide*.