CreateGlobalCluster - Amazon DocumentDB


Creates an Amazon DocumentDB global cluster that can span multiple multiple AWS Regions. The global cluster contains one primary cluster with read-write capability, and up-to give read-only secondary clusters. Global clusters uses storage-based fast replication across regions with latencies less than one second, using dedicated infrastructure with no impact to your workload’s performance.

You can create a global cluster that is initially empty, and then add a primary and a secondary to it. Or you can specify an existing cluster during the create operation, and this cluster becomes the primary of the global cluster.


This action only applies to Amazon DocumentDB clusters.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The cluster identifier of the new global cluster.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: [A-Za-z][0-9A-Za-z-:._]*

Required: Yes


The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon DocumentDB will not create a database in the global cluster you are creating.

Type: String

Required: No


The deletion protection setting for the new global cluster. The global cluster can't be deleted when deletion protection is enabled.

Type: Boolean

Required: No


The name of the database engine to be used for this cluster.

Type: String

Required: No


The engine version of the global cluster.

Type: String

Required: No


The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is optional.

Type: String

Required: No


The storage encryption setting for the new global cluster.

Type: Boolean

Required: No

Response Elements

The following element is returned by the service.


A data type representing an Amazon DocumentDB global cluster.

Type: GlobalCluster object


For information about the errors that are common to all actions, see Common Errors.


DBClusterIdentifier doesn't refer to an existing cluster.

HTTP Status Code: 404


The GlobalClusterIdentifier already exists. Choose a new global cluster identifier (unique name) to create a new global cluster.

HTTP Status Code: 400


The number of global clusters for this account is already at the maximum allowed.

HTTP Status Code: 400


The cluster isn't in a valid state.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: