Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Determining a cluster's status
You can determine a cluster's status using the Amazon Web Services Management Console or Amazon CLI.
- Using the Amazon Web Services Management Console
-
Use the following procedure to see the status of your Amazon DocumentDB
cluster using the Amazon Web Services Management Console
-
Sign in to the Amazon Web Services Management Console, and open the Amazon DocumentDB console at https://console.amazonaws.cn/docdb.
-
In the navigation pane, choose Clusters.
-
In the Cluster identifier column, find
the name of the cluster that you are interested in. Then, to
find the status of the cluster, read across that row to the
Status column, as shown below.
- Using the Amazon CLI
-
Use the describe-db-clusters
operation to see the
the status of your Amazon DocumentDB cluster using the Amazon CLI.
The following code finds the status of the cluster
sample-cluster
.
For Linux, macOS, or Unix:
aws docdb describe-db-clusters \
--db-cluster-identifier sample-cluster \
--query 'DBClusters[*].[DBClusterIdentifier,Status]'
For Windows:
aws docdb describe-db-clusters ^
--db-cluster-identifier sample-cluster ^
--query 'DBClusters[*].[DBClusterIdentifier,Status]'
Output from this operation looks something like the following (JSON format).
[
[
"sample-cluster",
"available"
]
]