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
DescribeClusteroperation or thedescribe-clusterAmazon 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.0Edit cluster storage mode. The following code example shows editing the cluster storage mode to
TIEREDusing theupdate-storageAPI.aws kafka update-storage --current-version Current-Cluster-Version --cluster-arn Cluster-arn --storage-mode TIERED