CmdID / aws / aws elasticache
aws elasticache decrease-replica-count
Dynamically decreases the number of replicas in a Valkey or Redis OSS (cluster mode disabled) replication group or the number of replica nodes in one or more node groups (shards) of a Valkey or Redis OSS (cluster mode enabled) replication group. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--apply-immediatelyIf True, the number of replica nodes is decreased immediately.--new-replica-countThe number of read replica nodes you want at the completion of this operation.--replica-configurationA list of ConfigureShard objects that can be used to configure each shard in a Valkey or Redis OSS replication group.--replicas-to-removeA list of the node ids to remove from the replication group or node group (shard).--replication-group-idThe id of the replication group from which you want to remove replica nodes.