elasticache_create_replication_group {paws.database} | R Documentation |
Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group
Description
Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group.
See https://www.paws-r-sdk.com/docs/elasticache_create_replication_group/ for full documentation.
Usage
elasticache_create_replication_group(
ReplicationGroupId,
ReplicationGroupDescription,
GlobalReplicationGroupId = NULL,
PrimaryClusterId = NULL,
AutomaticFailoverEnabled = NULL,
MultiAZEnabled = NULL,
NumCacheClusters = NULL,
PreferredCacheClusterAZs = NULL,
NumNodeGroups = NULL,
ReplicasPerNodeGroup = NULL,
NodeGroupConfiguration = NULL,
CacheNodeType = NULL,
Engine = NULL,
EngineVersion = NULL,
CacheParameterGroupName = NULL,
CacheSubnetGroupName = NULL,
CacheSecurityGroupNames = NULL,
SecurityGroupIds = NULL,
Tags = NULL,
SnapshotArns = NULL,
SnapshotName = NULL,
PreferredMaintenanceWindow = NULL,
Port = NULL,
NotificationTopicArn = NULL,
AutoMinorVersionUpgrade = NULL,
SnapshotRetentionLimit = NULL,
SnapshotWindow = NULL,
AuthToken = NULL,
TransitEncryptionEnabled = NULL,
AtRestEncryptionEnabled = NULL,
KmsKeyId = NULL,
UserGroupIds = NULL,
LogDeliveryConfigurations = NULL,
DataTieringEnabled = NULL,
NetworkType = NULL,
IpDiscovery = NULL,
TransitEncryptionMode = NULL,
ClusterMode = NULL,
ServerlessCacheSnapshotName = NULL
)
Arguments
ReplicationGroupId |
[required] The replication group identifier. This parameter is stored as a lowercase string. Constraints:
|
ReplicationGroupDescription |
[required] A user-created description for the replication group. |
GlobalReplicationGroupId |
The name of the Global datastore |
PrimaryClusterId |
The identifier of the cluster that serves as the primary for this
replication group. This cluster must already exist and have a status of
This parameter is not required if |
AutomaticFailoverEnabled |
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.
Default: false |
MultiAZEnabled |
A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ. |
NumCacheClusters |
The number of clusters this replication group initially has. This parameter is not used if there is more than one node group (shard).
You should use If The maximum permitted value for |
PreferredCacheClusterAZs |
A list of EC2 Availability Zones in which the replication group's clusters are created. The order of the Availability Zones in the list is the order in which clusters are allocated. The primary cluster is created in the first AZ in the list. This parameter is not used if there is more than one node group (shard).
You should use If you are creating your replication group in an Amazon VPC (recommended), you can only locate clusters in Availability Zones associated with the subnets in the selected subnet group. The number of Availability Zones listed must equal the value of
Default: system chosen Availability Zones. |
NumNodeGroups |
An optional parameter that specifies the number of node groups (shards) for this Redis (cluster mode enabled) replication group. For Redis (cluster mode disabled) either omit this parameter or set it to 1. Default: 1 |
ReplicasPerNodeGroup |
An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0 to 5. |
NodeGroupConfiguration |
A list of node group (shard) configuration options. Each node group
(shard) configuration has the following members:
If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group, you can use this parameter to individually configure each node group (shard), or you can omit this parameter. However, it is required when seeding a Redis (cluster mode enabled) cluster from a S3 rdb file. You must configure each node group (shard) using this parameter because you must specify the slots for each node group. |
CacheNodeType |
The compute and memory capacity of the nodes in the node group (shard). The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
Additional node type info
|
Engine |
The name of the cache engine to be used for the clusters in this
replication group. The value must be set to |
EngineVersion |
The version number of the cache engine to be used for the clusters in
this replication group. To view the supported cache engine versions, use
the
Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version. |
CacheParameterGroupName |
The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used. If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default parameter group, we recommend that you specify the parameter group by name.
|
CacheSubnetGroupName |
The name of the cache subnet group to be used for the replication group. If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you start creating a cluster. For more information, see Subnets and Subnet Groups. |
CacheSecurityGroupNames |
A list of cache security group names to associate with this replication group. |
SecurityGroupIds |
One or more Amazon VPC security groups associated with this replication group. Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud (Amazon VPC). |
Tags |
A list of tags to be added to this resource. Tags are comma-separated
key,value pairs (e.g. Key= |
SnapshotArns |
A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new replication group. The Amazon S3 object name in the ARN cannot contain any commas. The new replication group will have the number of node groups (console: shards) specified by the parameter NumNodeGroups or the number of node groups configured by NodeGroupConfiguration regardless of the number of ARNs specified here. Example of an Amazon S3 ARN: |
SnapshotName |
The name of a snapshot from which to restore data into the new
replication group. The snapshot status changes to |
PreferredMaintenanceWindow |
Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for
Example: |
Port |
The port number on which each member of the replication group accepts connections. |
NotificationTopicArn |
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent. The Amazon SNS topic owner must be the same as the cluster owner. |
AutoMinorVersionUpgrade |
If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions. |
SnapshotRetentionLimit |
The number of days for which ElastiCache retains automatic snapshots
before deleting them. For example, if you set Default: 0 (i.e., automatic backups are disabled for this cluster). |
SnapshotWindow |
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard). Example: If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range. |
AuthToken |
Reserved parameter. The password used to access a password protected server.
For HIPAA compliance, you must specify Password constraints:
For more information, see AUTH password at http://redis.io/commands/AUTH. |
TransitEncryptionEnabled |
A flag that enables in-transit encryption when set to This parameter is valid only if the If you enable in-transit encryption, you must also specify a value for
Required: Only available when creating a replication group in an
Amazon VPC using redis version Default: For HIPAA compliance, you must specify |
AtRestEncryptionEnabled |
A flag that enables encryption at rest when set to You cannot modify the value of Required: Only available when creating a replication group in an
Amazon VPC using redis version Default: |
KmsKeyId |
The ID of the KMS key used to encrypt the disk in the cluster. |
UserGroupIds |
The user group to associate with the replication group. |
LogDeliveryConfigurations |
Specifies the destination, format and type of the logs. |
DataTieringEnabled |
Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering. |
NetworkType |
Must be either |
IpDiscovery |
The network type you choose when creating a replication group, either
|
TransitEncryptionMode |
A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. When setting Setting This process will not trigger the replacement of the replication group. |
ClusterMode |
Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled. |
ServerlessCacheSnapshotName |
The name of the snapshot used to create a replication group. Available for Redis only. |