HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/local/aws-cli/v2/dist/awscli/examples/memorydb/update-cluster.rst
**To update a cluster**

The following update-cluster`` updates the parameter group of a cluster to my-parameter-group. ::

    aws memorydb update-cluster \
        --cluster-name my-cluster \
        --parameter-group-name my-parameter-group

Output::

    {
        "Cluster": {
            "Name": "my-cluster",
            "Status": "available",
            "NumberOfShards": 2,
            "AvailabilityMode": "MultiAZ",
            "ClusterEndpoint": {
                "Address": "clustercfg.my-cluster.llru6f.memorydb.us-east-1.amazonaws.com",
                "Port": 6379
            },
            "NodeType": "db.r6g.large",
            "EngineVersion": "6.2",
            "EnginePatchVersion": "6.2.6",
            "ParameterGroupName": "my-parameter-group",
            "ParameterGroupStatus": "in-sync",
            "SecurityGroups": [
                {
                    "SecurityGroupId": "sg-0a143xxxxxc9fae",
                    "Status": "active"
                }
            ],
            "SubnetGroupName": "pat-sg",
            "TLSEnabled": true,
            "ARN": "arn:aws:memorydb:us-east-1:491658xxxxxx:cluster/my-cluster",
            "SnapshotRetentionLimit": 0,
            "MaintenanceWindow": "wed:03:00-wed:04:00",
            "SnapshotWindow": "04:30-05:30",
            "ACLName": "my-acl",
            "AutoMinorVersionUpgrade": true
        }
    }

For more information, see `Modifying a cluster <https://docs.aws.amazon.com/memorydb/latest/devguide/clusters.modify.html>`__ in the *MemoryDB User Guide*.