

# Viewing data groups

You can use the AWS Management Console or AWS CLI to view your data groups and their status. The default data group isn't listed. To see it, use the SQL views in [Finding the data groups and their databases with SQL](#dg-list-sql).

## Console
<a name="dg-view.CON"></a>

Use the following procedure.

**To view data groups using the console**

1. Sign in to the AWS Management Console and open the Amazon RDS console at [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/).

1. In the navigation pane, choose **Data Groups**.

   The **Data Groups overview** page displays. It has two tables:
   + **Ready to move** – Moves you've started, in any stage: being prepared, prepared and waiting for you to execute, or in progress.
   + **All data groups** – Every data group in your AWS account, with its **Source DB cluster name**, **Target DB cluster name**, and status.

1. To see the details of a data group, choose its name under **Data Group name**.

You can also see the data groups of one DB cluster on that DB cluster details page.

## CLI
<a name="dg-view.CLI"></a>

Use the `describe-data-groups` AWS CLI command. All parameters are optional:
+ `--data-group-identifier` – The identifier or ARN of one data group.
+ `--db-cluster-identifier` – Lists the data groups in one DB cluster. If you also use `--data-group-identifier`, the output shows that data group only when it's in the DB cluster. Otherwise, the list is empty.
+ `--max-records` and `--marker` – Page through a long list. `--max-records` must be 20–100.

The following example describes one data group.

```
aws rds describe-data-groups \
    --data-group-identifier {{dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111}}
```

The output resembles the following example.

```
{
    "DataGroups": [
        {
            "DBClusterIdentifier": "orders-cluster-1",
            "DataGroupName": "tenant42",
            "DataGroupIdentifier": "dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "DataGroupArn": "arn:aws:rds:us-east-1:111122223333:data-group:dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "KMSKeyId": "arn:aws:kms:us-east-1:111122223333:key/1a2b3c4d-5e6f-7a8b-9c0d-EXAMPLE11111",
            "StorageEncryptionType": "sse-kms",
            "Status": "active",
            "Tags": [
                {
                    "Key": "tenant",
                    "Value": "42"
                }
            ],
            "CreateTime": "2026-11-24T18:02:11.512Z"
        }
    ]
}
```

While a move is pending, the output also has `TargetDBClusterIdentifier`.

The following example lists the data groups in one DB cluster, with only the name and status of each.

```
aws rds describe-data-groups \
    --db-cluster-identifier {{orders-cluster-1}} \
    --query "DataGroups[].[DataGroupName,Status]" \
    --output text
```

The output resembles the following example.

```
tenant42    active
tenant57    ready-to-move
tenant63    active
```

For more information, see [describe-data-groups](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-data-groups.html).

If a data group command times out or returns a server error, describe the data group before you retry. The first call might have worked.

## Finding the data groups and their databases with SQL
<a name="dg-list-sql"></a>

Each database engine has views that list the data groups in a DB cluster and what each one holds. These views also show the default data group, which the Amazon RDS API and console don't list.

------
#### [ Aurora PostgreSQL ]

To list the data groups in the DB cluster, query `pg_catalog.aurora_datagroups`. Any user can read it.

```SQL
SELECT name, uuid FROM pg_catalog.aurora_datagroups;
```

To see which data group each database is in, join `pg_database` and `pg_tablespace`.

```SQL
SELECT d.datname, t.spcname
  FROM pg_database d
  JOIN pg_tablespace t ON t.oid = d.dattablespace;
```

The output resembles the following:

```
  datname  |  spcname
-----------+------------
 postgres  | pg_default
 rdsadmin  | pg_default
 template1 | pg_default
 template0 | pg_default
 orders    | tenant42
 payments  | tenant42
 invoices  | tenant42
(7 rows)
```

Databases in `pg_default` are in the default data group.

------

**Note**  
In AWS CLI commands, identify a data group by its `DataGroupIdentifier`, which starts with `dg-`, or by its ARN. Don't use the `uuid` value from `pg_catalog.aurora_datagroups`, because it's a different value.

## Data group status values
<a name="dg-status"></a>

The status of a data group can be one of the following. The console shows the same values in title case, for example **Ready to move**.
+ `creating` – Aurora is creating the data group. You can't use it yet.
+ `create-failed` – The data group couldn't be created. This status is final. Delete the data group and create it again.
+ `active` – The data group is ready to use.
+ `modifying` – Aurora is changing the data group.
+ `preparing-for-move` – Prepare is running. Schema changes are refused from here until the move ends.
+ `ready-to-move` – Prepare is done. You can execute or cancel the move.
+ `move-in-progress` – Execute is running. You can't write to the data group. On Aurora PostgreSQL, Aurora also ends open sessions in the data group's databases.
+ `cancelling-move` – Aurora is canceling a move that you haven't executed.
+ `restoring` – The data group was restored into a new DB cluster, and Aurora is finishing the restore.
+ `inaccessible-encryption-credentials` – Aurora can't use the data group's KMS key. This status is final. For more information, see [When a data group key becomes inaccessible](aurora-data-groups-encrypting.md#dg-encrypt-inaccessible).
+ `deleting` – Aurora is deleting the data group.