Enable tiered storage on an existing Amazon MSK cluster using Amazon CLI
Note
You can enable tiered storage only if your cluster's log.cleanup.policy is set to delete
, as compacted topics are not supported on tiered storage. Later, you can configure an individual topic's log.cleanup.policy to compact
if tiered storage is not enabled on that particular topic. See Topic-level configuration for more details on supported
configuration attributes.
Update the Kafka version – Cluster versions aren't simple integers. To find the current version of the cluster, use the
DescribeCluster
operation or thedescribe-cluster
Amazon CLI command. An example version isKTVPDKIKX0DER
.aws kafka update-cluster-kafka-version --cluster-arn ClusterArn --current-version Current-Cluster-Version --target-kafka-version 3.6.0
Edit cluster storage mode. The following code example shows editing the cluster storage mode to
TIERED
using theupdate-storage
API.aws kafka update-storage --current-version Current-Cluster-Version --cluster-arn Cluster-arn --storage-mode TIERED