CmdID

CmdID / aws / aws kafka

aws kafka get-bootstrap-brokers

A list of brokers that a client application can use to bootstrap. AWS CLI reference

1 example 1 option Its page in the AWS CLI reference

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

Examples

from aws-cli, each command read by CmdID

To get bootstrap brokers

The following get-bootstrap-brokers example retrieves the bootstrap broker information for an Amazon MSK cluster.

aws kafka get-bootstrap-brokers --cluster-arn arn:aws:kafka:us-west-2:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5Identify
--cluster-arnThe Amazon Resource Name (ARN) that uniquely identifies the cluster.
Its output
{
    "BootstrapBrokerString": "b-1.demo-cluster-1.xuy0sb.c5.kafka.us-west-2.amazonaws.com:9092,b-2.demo-cluster-1.xuy0sb.c5.kafka.us-west-2.amazonaws.com:9092",
    "BootstrapBrokerStringTls": "b-1.demo-cluster-1.xuy0sb.c5.kafka.us-west-2.amazonaws.com:9094,b-2.demo-cluster-1.xuy0sb.c5.kafka.us-west-2.amazonaws.com:9094"
}

For more information, see Getting the Bootstrap Brokers in the Amazon Managed Streaming for Apache Kafka Developer Guide.

Options

1 in the AWS CLI reference
--cluster-arnThe Amazon Resource Name (ARN) that uniquely identifies the cluster.