<a id="cli-aws-rds-create-db-cluster-group"></a>

# create-db-cluster-group

## Description

Creates a DB cluster group. A DB cluster group is a set of Aurora DB clusters that Amazon RDS backs up, restores, and upgrades together. After you create a DB cluster group, use `AddDBClusterToDBClusterGroup` to add DB clusters to it.

See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterGroup)

## Synopsis

```
  create-db-cluster-group
--db-cluster-group-identifier <value>
--engine <value>
[--preferred-maintenance-window <value>]
[--copy-tags-to-snapshot | --no-copy-tags-to-snapshot]
[--preferred-backup-window <value>]
[--backup-retention-period <value>]
[--deletion-protection | --no-deletion-protection]
[--enable-routing | --no-enable-routing]
[--routing-endpoint-configuration <value>]
[--tags <value>]
[--tag-specifications <value>]
[--admin-username <value>]
[--admin-user-password <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
[--help]
```

## Options

`--db-cluster-group-identifier` (string) [required]

> The identifier for the new DB cluster group. This parameter is stored as a lowercase string.

> Constraints:

> * Must contain from 1 to 63 letters, numbers, or hyphens.
> * First character must be a letter.
> * Can’t end with a hyphen or contain two consecutive hyphens.
> * Must be unique for all DB cluster groups owned by your Amazon Web Services account in the current Amazon Web Services Region.

> Constraints:

> * min: `1`
> * max: `63`
> * pattern: `[a-zA-Z](?:-?[a-zA-Z0-9]+)*`

`--engine` (string) [required]

> The database engine to use for the DB cluster group. All member DB clusters must use this engine.

> Valid Values:

> * `aurora-mysql` - Aurora MySQL-Compatible Edition
> * `aurora-postgresql` - Aurora PostgreSQL-Compatible Edition

`--preferred-maintenance-window` (string)

> The weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).

> Format: `ddd:hh24:mi-ddd:hh24:mi`

> Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

> Default: A 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week, which doesn’t overlap the preferred backup window.

> Constraints: Must be at least 30 minutes. Must not overlap the preferred backup window.

> The maintenance window of the DB cluster group can overlap the maintenance windows of its member DB clusters.

`--copy-tags-to-snapshot` | `--no-copy-tags-to-snapshot` (boolean)

> Specifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group. The default is not to copy them.

`--preferred-backup-window` (string)

> The daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).

> Format: `hh24:mi-hh24:mi`

> Default: A 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, which doesn’t overlap the preferred maintenance window.

> Constraints: Must be at least 30 minutes. Must not overlap the preferred maintenance window of the DB cluster group.

`--backup-retention-period` (integer)

> The number of days for which automated backups of the DB cluster group are retained.

> Default: 1

> Constraints: Must be a value from 1 to 35.

`--deletion-protection` | `--no-deletion-protection` (boolean)

> Specifies whether the DB cluster group has deletion protection enabled. You can’t delete the DB cluster group when deletion protection is enabled. By default, deletion protection isn’t enabled.

`--enable-routing` | `--no-enable-routing` (boolean)

> Specifies whether to enable routing for the DB cluster group. When routing is enabled, Amazon RDS creates a routing endpoint that applications connect to instead of connecting to each member DB cluster.

> When you enable routing, you must specify `VpcSubnetIds` in `RoutingEndpointConfiguration` , and you must specify `AdminUsername` and `AdminUserPassword` .

> Default: `false`

`--routing-endpoint-configuration` (structure)

> The settings of the routing endpoint. Specify this parameter only when `EnableRouting` is `true` , and include `VpcSubnetIds` .

> VpcSubnetIds -> (list)

> > The IDs of the subnets in which to create the routing endpoint. Specify subnets in at least two Availability Zones of the same VPC.

> > (string)

> VpcSecurityGroupIds -> (list)

> > The IDs of the VPC security groups to associate with the routing endpoint. The default is the default security group for the VPC.

> > (string)

> NetworkType -> (string)

> > The network type of the routing endpoint.

> > Default: `IPV4`

> > Possible values:

> > * `IPV4`
> > * `IPV6`
> > * `DUAL`

> Parameters -> (map)

> > The routing parameters to set, as name-value pairs. The valid names depend on the database engine of the DB cluster group. For any parameter that you don’t specify, Amazon RDS uses the default value for the engine.

> > Constraints:

> > * min: `0`
> > * max: `100`

> > key -> (string)

> > value -> (string)

Shorthand Syntax:

```
VpcSubnetIds=string,string,VpcSecurityGroupIds=string,string,NetworkType=string,Parameters={KeyName1=string,KeyName2=string}
```

JSON Syntax:

```json
{
  "VpcSubnetIds": ["string", ...],
  "VpcSecurityGroupIds": ["string", ...],
  "NetworkType": "IPV4"|"IPV6"|"DUAL",
  "Parameters": {"string": "string"
    ...}
}
```

`--tags` (list)

> Tags to assign to the DB cluster group.

> (structure)

> > Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

> > For more information, see [Tagging Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the *Amazon Aurora User Guide* .

> > Key -> (string)

> > > A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can’t be prefixed with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘:’, ‘/’, ‘=’, ‘+’, ‘-’, ‘@’ (Java regex: “^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]\*)$”).

> > Value -> (string)

> > > A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can’t be prefixed with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘:’, ‘/’, ‘=’, ‘+’, ‘-’, ‘@’ (Java regex: “^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]\*)$”).

Shorthand Syntax:

```
Key=string,Value=string ...
```

JSON Syntax:

```json
[
  {
    "Key": "string",
    "Value": "string"
  }
  ...
]
```

`--tag-specifications` (list)

> Tags to assign to resources associated with the DB cluster group.

> (structure)

> > The tags to apply to resources when creating or modifying a DB instance or DB cluster, or when copying a DB instance snapshot. When you specify a tag, you must specify the resource type to tag, otherwise the request will fail.

> > ResourceType -> (string)

> > > The type of resource to tag on creation.

> > > Valid Values:

> > > * `auto-backup` - The DB instance’s automated backup.
> > > * `cluster-auto-backup` - The DB cluster’s automated backup.
> > > * `og` - The copied option group. Valid only for `CopyDBSnapshot` .

> > Tags -> (list)

> > > A list of tags.

> > > For more information, see [Tagging Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the *Amazon Aurora User Guide* .

> > > (structure)

> > > > Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

> > > > For more information, see [Tagging Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the *Amazon Aurora User Guide* .

> > > > Key -> (string)

> > > > > A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can’t be prefixed with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘:’, ‘/’, ‘=’, ‘+’, ‘-’, ‘@’ (Java regex: “^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]\*)$”).

> > > > Value -> (string)

> > > > > A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can’t be prefixed with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘:’, ‘/’, ‘=’, ‘+’, ‘-’, ‘@’ (Java regex: “^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]\*)$”).

Shorthand Syntax:

```
ResourceType=string,Tags=[{Key=string,Value=string},{Key=string,Value=string}] ...
```

JSON Syntax:

```json
[
  {
    "ResourceType": "string",
    "Tags": [
      {
        "Key": "string",
        "Value": "string"
      }
      ...
    ]
  }
  ...
]
```

`--admin-username` (string)

> The name of the admin user that the routing endpoint uses to connect to the member DB clusters.

> If you specify `AdminUsername` , you must also specify `AdminUserPassword` .

> Default: None. An admin user is required when you enable routing.

`--admin-user-password` (string)

> The password for the admin user that the routing endpoint uses to connect to the member DB clusters.

> If you specify `AdminUserPassword` , you must also specify `AdminUsername` .

> Default: None. An admin user is required when you enable routing.

`--cli-input-json` | `--cli-input-yaml` (string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by `--generate-cli-skeleton`. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with `--cli-input-yaml`.

`--generate-cli-skeleton` (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value `input`, prints a sample input JSON that can be used as an argument for `--cli-input-json`. Similarly, if provided `yaml-input` it will print a sample input YAML that can be used with `--cli-input-yaml`. If provided with the value `output`, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.

## Global Options

`--debug` (boolean)

Turn on debug logging.

`--endpoint-url` (string)

Override command’s default URL with the given URL.

`--no-verify-ssl` (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

`--no-paginate` (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

`--output` (string)

The formatting style for command output.

* json
* text
* table
* yaml
* yaml-stream
* off

`--query` (string)

A JMESPath query to use in filtering the response data.

`--profile` (string)

Use a specific profile from your credential file.

`--region` (string)

The region to use. Overrides config/env settings.

`--version` (string)

Display the version of this tool.

`--color` (string)

Turn on/off color output.

* on
* off
* auto

`--no-sign-request` (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

`--ca-bundle` (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

`--cli-read-timeout` (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

`--cli-connect-timeout` (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

`--cli-binary-format` (string)

The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob `fileb://` will always be treated as binary and use the file contents directly regardless of the `cli-binary-format` setting. When using `file://` the file contents will need to properly formatted for the configured `cli-binary-format`.

* base64
* raw-in-base64-out

`--no-cli-pager` (boolean)

Disable cli pager for output.

`--cli-auto-prompt` (boolean)

Automatically prompt for CLI input parameters.

`--no-cli-auto-prompt` (boolean)

Disable automatically prompt for CLI input parameters.

`--cli-error-format` (string)

The formatting style for error output. By default, errors are displayed in enhanced format.

* legacy
* json
* yaml
* text
* table
* enhanced

`--help` (boolean)

Display help for the command/subcommand.

## Output

DBClusterGroup -> (structure)

> Describes a DB cluster group, including its settings, status, member DB clusters, and routing endpoint.

> This data type is used as a response element in the `CreateDBClusterGroup` , `DeleteDBClusterGroup` , `DescribeDBClusterGroups` , `ModifyDBClusterGroup` , `RestoreDBClusterGroupFromSnapshot` , and `RestoreDBClusterGroupToPointInTime` actions.

> DBClusterGroupIdentifier -> (string)

> > The identifier of the DB cluster group.

> > Constraints:

> > * min: `1`
> > * max: `63`
> > * pattern: `[a-zA-Z](?:-?[a-zA-Z0-9]+)*`

> DBClusterGroupResourceId -> (string)

> > The Amazon Web Services Region-unique, immutable identifier for the DB cluster group.

> DBClusterGroupArn -> (string)

> > The Amazon Resource Name (ARN) for the DB cluster group.

> Status -> (string)

> > The status of the DB cluster group.

> > Valid Values:

> > * `creating` - Amazon RDS is creating the DB cluster group.
> > * `available` - The DB cluster group is ready to use.
> > * `modifying` - Amazon RDS is applying a change to the DB cluster group.
> > * `deleting` - Amazon RDS is deleting the DB cluster group.
> > * `incompatible-restore` - Amazon RDS couldn’t restore the DB cluster group.

> > Possible values:

> > * `creating`
> > * `available`
> > * `deleting`
> > * `modifying`
> > * `incompatible-restore`

> Engine -> (string)

> > The database engine used by the DB cluster group.

> MinEngineVersion -> (string)

> > The lowest engine version among the member DB clusters of the DB cluster group.

> MaxEngineVersion -> (string)

> > The highest engine version among the member DB clusters of the DB cluster group.

> PendingModifiedValues -> (structure)

> > Changes to the DB cluster group that are pending.

> > EngineVersion -> (string)

> > > The engine version that the member DB clusters of the DB cluster group will be upgraded to.

> PreferredMaintenanceWindow -> (string)

> > The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

> CopyTagsToSnapshot -> (boolean)

> > Specifies whether tags are copied from the DB cluster group to snapshots of the DB cluster group.

> PreferredBackupWindow -> (string)

> > The daily time range during which automated backups are created, in Universal Coordinated Time (UTC).

> BackupRetentionPeriod -> (integer)

> > The number of days for which automated backups of the DB cluster group are retained.

> EarliestRestorableTime -> (timestamp)

> > The earliest time to which the DB cluster group can be restored with point-in-time restore.

> LatestRestorableTime -> (timestamp)

> > The latest time to which the DB cluster group can be restored with point-in-time restore.

> DBClusterGroupCreateTime -> (timestamp)

> > The time when the DB cluster group was created, in Universal Coordinated Time (UTC).

> DeletionProtection -> (boolean)

> > Specifies whether the DB cluster group has deletion protection enabled. You can’t delete the DB cluster group when deletion protection is enabled.

> RoutingEnabled -> (boolean)

> > Specifies whether routing is enabled for the DB cluster group.

> RoutingEndpointConfigurationInfo -> (structure)

> > The details of the routing endpoint of the DB cluster group. This element is returned only when routing is enabled.

> > VpcSubnetIds -> (list)

> > > The IDs of the subnets in which the routing endpoint is created.

> > > (string)

> > VpcSecurityGroupIds -> (list)

> > > The IDs of the VPC security groups that are associated with the routing endpoint.

> > > (string)

> > NetworkType -> (string)

> > > The network type of the routing endpoint.

> > > Possible values:

> > > * `IPV4`
> > > * `IPV6`
> > > * `DUAL`

> > Status -> (string)

> > > The status of the routing endpoint.

> > > Valid Values:

> > > * `creating` - Amazon RDS is creating the routing endpoint.
> > > * `available` - The routing endpoint is ready to use.
> > > * `modifying` - Amazon RDS is applying a change to the routing endpoint.
> > > * `deleting` - Amazon RDS is deleting the routing endpoint.
> > > * `incompatible-network` - Amazon RDS can’t use the network settings of the routing endpoint, for example because a subnet or security group no longer exists.
> > > * `insufficient-resource-limits` - Amazon RDS can’t create or update the routing endpoint because an Amazon Web Services account quota was reached.

> > > Possible values:

> > > * `available`
> > > * `modifying`
> > > * `incompatible-network`
> > > * `insufficient-resource-limits`
> > > * `creating`
> > > * `deleting`

> > Endpoint -> (string)

> > > The DNS address of the router endpoint.

> > ReaderEndpoint -> (string)

> > > The DNS address of the reader router endpoint.

> > Port -> (integer)

> > > The port on which the routing endpoint accepts connections.

> > VpcId -> (string)

> > > The ID of the VPC of the routing endpoint.

> > Parameters -> (map)

> > > The routing parameters of the routing endpoint, as name-value pairs. Includes parameters set to their default values.

> > > Constraints:

> > > * min: `0`
> > > * max: `100`

> > > key -> (string)

> > > value -> (string)

> TagList -> (list)

> > The tags assigned to the DB cluster group.

> > (structure)

> > > Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

> > > For more information, see [Tagging Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the *Amazon Aurora User Guide* .

> > > Key -> (string)

> > > > A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can’t be prefixed with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘:’, ‘/’, ‘=’, ‘+’, ‘-’, ‘@’ (Java regex: “^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]\*)$”).

> > > Value -> (string)

> > > > A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can’t be prefixed with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘:’, ‘/’, ‘=’, ‘+’, ‘-’, ‘@’ (Java regex: “^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]\*)$”).

> DBClusterGroupMembers -> (list)

> > The DB clusters that are members of the DB cluster group.

> > (structure)

> > > Contains the details of a DB cluster that is a member of a DB cluster group.

> > > DBClusterArn -> (string)

> > > > The Amazon Resource Name (ARN) for the DB cluster.

> AdminUsername -> (string)

> > The name of the admin user that the routing endpoint uses to connect to the member DB clusters.
