aws kafka update-cluster-configuration
Updates the cluster with the configuration that is specified in the request body. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To update the configuration of an Amazon MSK cluster
The following update-cluster-configuration example updates the configuration of the specified existing MSK cluster. It uses a custom MSK configuration.
aws kafka update-cluster-configuration --cluster-arn "arn:aws:kafka:us-west-2:123456789012:cluster/MessagingCluster/a1b2c3d4-5678-90ab-cdef-11111EXAMPLE-2" --configuration-info file://configuration-info.json --current-version "K21V3IB1VIZYYH"Identify--cluster-arnThe Amazon Resource Name (ARN) that uniquely identifies the cluster.--configuration-infoRepresents the configuration that you want MSK to use for the brokers in a cluster.--current-versionThe version of the cluster that needs to be updated.Contents of configuration-info.json:
{
"Arn": "arn:aws:kafka:us-west-2:123456789012:configuration/CustomConfiguration/a1b2c3d4-5678-90ab-cdef-11111EXAMPLE-2",
"Revision": 1
}
Its output
{
"ClusterArn": "arn:aws:kafka:us-west-2:123456789012:cluster/MessagingCluster/a1b2c3d4-5678-90ab-cdef-11111EXAMPLE-2",
"ClusterOperationArn": "arn:aws:kafka:us-west-2:123456789012:cluster-operation/V123450123/a1b2c3d4-1234-abcd-cdef-22222EXAMPLE-2/a1b2c3d4-5678-90ab-cdef-EXAMPLE33333"
}The output returns an ARN for this update-cluster-configuration operation. To determine if this operation is complete, use the describe-cluster-operation command with this ARN as input.
For more information, see Update the configuration of an Amazon MSK cluster in the Amazon Managed Streaming for Apache Kafka Developer Guide.
Options
--cluster-arnThe Amazon Resource Name (ARN) that uniquely identifies the cluster.--configuration-infoRepresents the configuration that you want MSK to use for the brokers in a cluster.--current-versionThe version of the cluster that needs to be updated.