HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
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/lib/python3/dist-packages/awscli/examples/elasticache/describe-replication-groups.rst
**To return a list of replication group details**

The following ``describe-replication-groups`` example returns the replication groups. ::

    aws elasticache describe-replication-groups

Output::

    {
        "ReplicationGroups": [
            {
                "ReplicationGroupId": "my-cluster",
                "Description": "mycluster",
                "Status": "available",
                "PendingModifiedValues": {},
                "MemberClusters": [
                    "pat-cluster-001",
                    "pat-cluster-002",
                    "pat-cluster-003",
                    "pat-cluster-004"
                ],
                "NodeGroups": [
                    {
                        "NodeGroupId": "0001",
                        "Status": "available",
                        "PrimaryEndpoint": {
                            "Address": "my-cluster.xxxxih.ng.0001.usw2.cache.amazonaws.com",
                            "Port": 6379
                        },
                        "ReaderEndpoint": {
                            "Address": "my-cluster-ro.xxxxih.ng.0001.usw2.cache.amazonaws.com",
                            "Port": 6379
                        },
                        "NodeGroupMembers": [
                            {
                                "CacheClusterId": "my-cluster-001",
                                "CacheNodeId": "0001",
                                "ReadEndpoint": {
                                    "Address": "pat-cluster-001.xxxih.0001.usw2.cache.amazonaws.com",
                                    "Port": 6379
                                },
                                "PreferredAvailabilityZone": "us-west-2a",
                                "CurrentRole": "primary"
                            },
                            {
                                "CacheClusterId": "my-cluster-002",
                                "CacheNodeId": "0001",
                                "ReadEndpoint": {
                                    "Address": "pat-cluster-002.xxxxih.0001.usw2.cache.amazonaws.com",
                                    "Port": 6379
                                },
                                "PreferredAvailabilityZone": "us-west-2a",
                                "CurrentRole": "replica"
                            },
                            {
                                "CacheClusterId": "my-cluster-003",
                                "CacheNodeId": "0001",
                                "ReadEndpoint": {
                                    "Address": "pat-cluster-003.xxxxih.0001.usw2.cache.amazonaws.com",
                                    "Port": 6379
                                },
                                "PreferredAvailabilityZone": "us-west-2a",
                                "CurrentRole": "replica"
                            },
                            {
                                "CacheClusterId": "my-cluster-004",
                                "CacheNodeId": "0001",
                                "ReadEndpoint": {
                                    "Address": "pat-cluster-004.xxxih.0001.usw2.cache.amazonaws.com",
                                    "Port": 6379
                                },
                                "PreferredAvailabilityZone": "us-west-2a",
                                "CurrentRole": "replica"
                            }
                        ]
                    }
                ],
                "AutomaticFailover": "disabled",
                "SnapshotRetentionLimit": 0,
                "SnapshotWindow": "07:30-08:30",
                "ClusterEnabled": false,
                "CacheNodeType": "cache.r5.xlarge",
                "AuthTokenEnabled": false,
                "TransitEncryptionEnabled": false,
                "AtRestEncryptionEnabled": false,
                "ARN": "arn:aws:elasticache:us-west-2:xxxxxxxxxxx152:replicationgroup:my-cluster",
                "LogDeliveryConfigurations": [
                    {
                        "LogType": "slow-log",
                        "DestinationType": "cloudwatch-logs",
                        "DestinationDetails": {
                            "CloudWatchLogsDetails": {
                                "LogGroup": "test-log"
                            }
                        },
                        "LogFormat": "json",
                        "Status": "active"
                    }
                ]
            }
        ]
    }

For more information, see `Managing Clusters <https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.html>`__ in the *Elasticache User Guide*.