ReplicationGroup
Provides an ElastiCache Replication Group resource.
For working with Memcached or single primary Redis instances (Cluster Mode Disabled), see the
aws.elasticache.Cluster resource.
Note: When you change an attribute, such as
engine_version, by default the ElastiCache API applies it in the next maintenance window. Because of this, this provider may report a difference in its planning phase because the actual modification has not yet taken place. You can use theapply_immediatelyflag to instruct the service to apply the change immediately. Usingapply_immediatelycan result in a brief downtime as servers reboots.
Example Usage
Redis Cluster Mode Disabled
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.ElastiCache.ReplicationGroup("example", new Aws.ElastiCache.ReplicationGroupArgs
{
AutomaticFailoverEnabled = true,
AvailabilityZones =
{
"us-west-2a",
"us-west-2b",
},
NodeType = "cache.m4.large",
NumberCacheClusters = 2,
ParameterGroupName = "default.redis3.2",
Port = 6379,
ReplicationGroupDescription = "test description",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticache"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elasticache.NewReplicationGroup(ctx, "example", &elasticache.ReplicationGroupArgs{
AutomaticFailoverEnabled: pulumi.Bool(true),
AvailabilityZones: pulumi.StringArray{
pulumi.String("us-west-2a"),
pulumi.String("us-west-2b"),
},
NodeType: pulumi.String("cache.m4.large"),
NumberCacheClusters: pulumi.Int(2),
ParameterGroupName: pulumi.String("default.redis3.2"),
Port: pulumi.Int(6379),
ReplicationGroupDescription: pulumi.String("test description"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.elasticache.ReplicationGroup("example",
automatic_failover_enabled=True,
availability_zones=[
"us-west-2a",
"us-west-2b",
],
node_type="cache.m4.large",
number_cache_clusters=2,
parameter_group_name="default.redis3.2",
port=6379,
replication_group_description="test description")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.elasticache.ReplicationGroup("example", {
automaticFailoverEnabled: true,
availabilityZones: [
"us-west-2a",
"us-west-2b",
],
nodeType: "cache.m4.large",
numberCacheClusters: 2,
parameterGroupName: "default.redis3.2",
port: 6379,
replicationGroupDescription: "test description",
});Redis Cluster Mode Enabled
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var baz = new Aws.ElastiCache.ReplicationGroup("baz", new Aws.ElastiCache.ReplicationGroupArgs
{
AutomaticFailoverEnabled = true,
ClusterMode = new Aws.ElastiCache.Inputs.ReplicationGroupClusterModeArgs
{
NumNodeGroups = 2,
ReplicasPerNodeGroup = 1,
},
NodeType = "cache.t2.small",
ParameterGroupName = "default.redis3.2.cluster.on",
Port = 6379,
ReplicationGroupDescription = "test description",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticache"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elasticache.NewReplicationGroup(ctx, "baz", &elasticache.ReplicationGroupArgs{
AutomaticFailoverEnabled: pulumi.Bool(true),
ClusterMode: &elasticache.ReplicationGroupClusterModeArgs{
NumNodeGroups: pulumi.Int(2),
ReplicasPerNodeGroup: pulumi.Int(1),
},
NodeType: pulumi.String("cache.t2.small"),
ParameterGroupName: pulumi.String("default.redis3.2.cluster.on"),
Port: pulumi.Int(6379),
ReplicationGroupDescription: pulumi.String("test description"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
baz = aws.elasticache.ReplicationGroup("baz",
automatic_failover_enabled=True,
cluster_mode={
"numNodeGroups": 2,
"replicasPerNodeGroup": 1,
},
node_type="cache.t2.small",
parameter_group_name="default.redis3.2.cluster.on",
port=6379,
replication_group_description="test description")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const baz = new aws.elasticache.ReplicationGroup("baz", {
automaticFailoverEnabled: true,
clusterMode: {
numNodeGroups: 2,
replicasPerNodeGroup: 1,
},
nodeType: "cache.t2.small",
parameterGroupName: "default.redis3.2.cluster.on",
port: 6379,
replicationGroupDescription: "test description",
});Create a ReplicationGroup Resource
new ReplicationGroup(name: string, args: ReplicationGroupArgs, opts?: CustomResourceOptions);def ReplicationGroup(resource_name, opts=None, apply_immediately=None, at_rest_encryption_enabled=None, auth_token=None, auto_minor_version_upgrade=None, automatic_failover_enabled=None, availability_zones=None, cluster_mode=None, engine=None, engine_version=None, kms_key_id=None, maintenance_window=None, node_type=None, notification_topic_arn=None, number_cache_clusters=None, parameter_group_name=None, port=None, replication_group_description=None, replication_group_id=None, security_group_ids=None, security_group_names=None, snapshot_arns=None, snapshot_name=None, snapshot_retention_limit=None, snapshot_window=None, subnet_group_name=None, tags=None, transit_encryption_enabled=None, __props__=None);func NewReplicationGroup(ctx *Context, name string, args ReplicationGroupArgs, opts ...ResourceOption) (*ReplicationGroup, error)public ReplicationGroup(string name, ReplicationGroupArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ReplicationGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReplicationGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReplicationGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ReplicationGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ReplicationGroup resource accepts the following input properties:
- Replication
Group stringDescription A user-created description for the replication group.
- Apply
Immediately bool Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is
false.- At
Rest boolEncryption Enabled Whether to enable encryption at rest.
- Auth
Token string The password used to access a password protected server. Can be specified only if
transit_encryption_enabled = true.- Auto
Minor boolVersion Upgrade Specifies whether a minor engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Defaults to
true.- Automatic
Failover boolEnabled Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to
false.- Availability
Zones List<string> A list of EC2 availability zones in which the replication group’s cache clusters will be created. The order of the availability zones in the list is not important.
- Cluster
Mode ReplicationGroup Cluster Mode Args Create a native redis cluster.
automatic_failover_enabledmust be set to true. Cluster Mode documented below. Only 1cluster_modeblock is allowed.- Engine string
The name of the cache engine to be used for the clusters in this replication group. e.g.
redis- Engine
Version string The version number of the cache engine to be used for the cache clusters in this replication group.
- Kms
Key stringId The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if
at_rest_encryption_enabled = true.- Maintenance
Window string Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- Node
Type string The compute and memory capacity of the nodes in the node group.
- Notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- Number
Cache intClusters The number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications.
- Parameter
Group stringName 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.
- Port int
The port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379.
- Replication
Group stringId The replication group identifier. This parameter is stored as a lowercase string.
- Security
Group List<string>Ids 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
- Security
Group List<string>Names A list of cache security group names to associate with this replication group.
- Snapshot
Arns List<string> A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. Example:
arn:aws:s3:::my_bucket/snapshot1.rdb- Snapshot
Name string The name of a snapshot from which to restore data into the new node group. Changing the
snapshot_nameforces a new resource.- Snapshot
Retention intLimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a
snapshot_retention_limitis not supported on cache.t1.micro or cache.t2.* cache nodes- Snapshot
Window string The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example:
05:00-09:00- Subnet
Group stringName The name of the cache subnet group to be used for the replication group.
- Dictionary<string, string>
A map of tags to assign to the resource
- Transit
Encryption boolEnabled Whether to enable encryption in transit.
- Replication
Group stringDescription A user-created description for the replication group.
- Apply
Immediately bool Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is
false.- At
Rest boolEncryption Enabled Whether to enable encryption at rest.
- Auth
Token string The password used to access a password protected server. Can be specified only if
transit_encryption_enabled = true.- Auto
Minor boolVersion Upgrade Specifies whether a minor engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Defaults to
true.- Automatic
Failover boolEnabled Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to
false.- Availability
Zones []string A list of EC2 availability zones in which the replication group’s cache clusters will be created. The order of the availability zones in the list is not important.
- Cluster
Mode ReplicationGroup Cluster Mode Create a native redis cluster.
automatic_failover_enabledmust be set to true. Cluster Mode documented below. Only 1cluster_modeblock is allowed.- Engine string
The name of the cache engine to be used for the clusters in this replication group. e.g.
redis- Engine
Version string The version number of the cache engine to be used for the cache clusters in this replication group.
- Kms
Key stringId The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if
at_rest_encryption_enabled = true.- Maintenance
Window string Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- Node
Type string The compute and memory capacity of the nodes in the node group.
- Notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- Number
Cache intClusters The number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications.
- Parameter
Group stringName 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.
- Port int
The port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379.
- Replication
Group stringId The replication group identifier. This parameter is stored as a lowercase string.
- Security
Group []stringIds 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
- Security
Group []stringNames A list of cache security group names to associate with this replication group.
- Snapshot
Arns []string A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. Example:
arn:aws:s3:::my_bucket/snapshot1.rdb- Snapshot
Name string The name of a snapshot from which to restore data into the new node group. Changing the
snapshot_nameforces a new resource.- Snapshot
Retention intLimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a
snapshot_retention_limitis not supported on cache.t1.micro or cache.t2.* cache nodes- Snapshot
Window string The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example:
05:00-09:00- Subnet
Group stringName The name of the cache subnet group to be used for the replication group.
- map[string]string
A map of tags to assign to the resource
- Transit
Encryption boolEnabled Whether to enable encryption in transit.
- replication
Group stringDescription A user-created description for the replication group.
- apply
Immediately boolean Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is
false.- at
Rest booleanEncryption Enabled Whether to enable encryption at rest.
- auth
Token string The password used to access a password protected server. Can be specified only if
transit_encryption_enabled = true.- auto
Minor booleanVersion Upgrade Specifies whether a minor engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Defaults to
true.- automatic
Failover booleanEnabled Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to
false.- availability
Zones string[] A list of EC2 availability zones in which the replication group’s cache clusters will be created. The order of the availability zones in the list is not important.
- cluster
Mode ReplicationGroup Cluster Mode Create a native redis cluster.
automatic_failover_enabledmust be set to true. Cluster Mode documented below. Only 1cluster_modeblock is allowed.- engine string
The name of the cache engine to be used for the clusters in this replication group. e.g.
redis- engine
Version string The version number of the cache engine to be used for the cache clusters in this replication group.
- kms
Key stringId The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if
at_rest_encryption_enabled = true.- maintenance
Window string Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- node
Type string The compute and memory capacity of the nodes in the node group.
- notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- number
Cache numberClusters The number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications.
- parameter
Group stringName 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.
- port number
The port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379.
- replication
Group stringId The replication group identifier. This parameter is stored as a lowercase string.
- security
Group string[]Ids 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
- security
Group string[]Names A list of cache security group names to associate with this replication group.
- snapshot
Arns string[] A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. Example:
arn:aws:s3:::my_bucket/snapshot1.rdb- snapshot
Name string The name of a snapshot from which to restore data into the new node group. Changing the
snapshot_nameforces a new resource.- snapshot
Retention numberLimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a
snapshot_retention_limitis not supported on cache.t1.micro or cache.t2.* cache nodes- snapshot
Window string The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example:
05:00-09:00- subnet
Group stringName The name of the cache subnet group to be used for the replication group.
- {[key: string]: string}
A map of tags to assign to the resource
- transit
Encryption booleanEnabled Whether to enable encryption in transit.
- replication_
group_ strdescription A user-created description for the replication group.
- apply_
immediately bool Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is
false.- at_
rest_ boolencryption_ enabled Whether to enable encryption at rest.
- auth_
token str The password used to access a password protected server. Can be specified only if
transit_encryption_enabled = true.- auto_
minor_ boolversion_ upgrade Specifies whether a minor engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Defaults to
true.- automatic_
failover_ boolenabled Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to
false.- availability_
zones List[str] A list of EC2 availability zones in which the replication group’s cache clusters will be created. The order of the availability zones in the list is not important.
- cluster_
mode Dict[ReplicationGroup Cluster Mode] Create a native redis cluster.
automatic_failover_enabledmust be set to true. Cluster Mode documented below. Only 1cluster_modeblock is allowed.- engine str
The name of the cache engine to be used for the clusters in this replication group. e.g.
redis- engine_
version str The version number of the cache engine to be used for the cache clusters in this replication group.
- kms_
key_ strid The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if
at_rest_encryption_enabled = true.- maintenance_
window str Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- node_
type str The compute and memory capacity of the nodes in the node group.
- notification_
topic_ strarn An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- number_
cache_ floatclusters The number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications.
- parameter_
group_ strname 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.
- port float
The port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379.
- replication_
group_ strid The replication group identifier. This parameter is stored as a lowercase string.
- security_
group_ List[str]ids 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
- security_
group_ List[str]names A list of cache security group names to associate with this replication group.
- snapshot_
arns List[str] A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. Example:
arn:aws:s3:::my_bucket/snapshot1.rdb- snapshot_
name str The name of a snapshot from which to restore data into the new node group. Changing the
snapshot_nameforces a new resource.- snapshot_
retention_ floatlimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a
snapshot_retention_limitis not supported on cache.t1.micro or cache.t2.* cache nodes- snapshot_
window str The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example:
05:00-09:00- subnet_
group_ strname The name of the cache subnet group to be used for the replication group.
- Dict[str, str]
A map of tags to assign to the resource
- transit_
encryption_ boolenabled Whether to enable encryption in transit.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReplicationGroup resource produces the following output properties:
- Configuration
Endpoint stringAddress The address of the replication group configuration endpoint when cluster mode is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Member
Clusters List<string> The identifiers of all the nodes that are part of this replication group.
- Primary
Endpoint stringAddress (Redis only) The address of the endpoint for the primary node in the replication group, if the cluster mode is disabled.
- Configuration
Endpoint stringAddress The address of the replication group configuration endpoint when cluster mode is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Member
Clusters []string The identifiers of all the nodes that are part of this replication group.
- Primary
Endpoint stringAddress (Redis only) The address of the endpoint for the primary node in the replication group, if the cluster mode is disabled.
- configuration
Endpoint stringAddress The address of the replication group configuration endpoint when cluster mode is enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- member
Clusters string[] The identifiers of all the nodes that are part of this replication group.
- primary
Endpoint stringAddress (Redis only) The address of the endpoint for the primary node in the replication group, if the cluster mode is disabled.
- configuration_
endpoint_ straddress The address of the replication group configuration endpoint when cluster mode is enabled.
- id str
- The provider-assigned unique ID for this managed resource.
- member_
clusters List[str] The identifiers of all the nodes that are part of this replication group.
- primary_
endpoint_ straddress (Redis only) The address of the endpoint for the primary node in the replication group, if the cluster mode is disabled.
Look up an Existing ReplicationGroup Resource
Get an existing ReplicationGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ReplicationGroupState, opts?: CustomResourceOptions): ReplicationGroupstatic get(resource_name, id, opts=None, apply_immediately=None, at_rest_encryption_enabled=None, auth_token=None, auto_minor_version_upgrade=None, automatic_failover_enabled=None, availability_zones=None, cluster_mode=None, configuration_endpoint_address=None, engine=None, engine_version=None, kms_key_id=None, maintenance_window=None, member_clusters=None, node_type=None, notification_topic_arn=None, number_cache_clusters=None, parameter_group_name=None, port=None, primary_endpoint_address=None, replication_group_description=None, replication_group_id=None, security_group_ids=None, security_group_names=None, snapshot_arns=None, snapshot_name=None, snapshot_retention_limit=None, snapshot_window=None, subnet_group_name=None, tags=None, transit_encryption_enabled=None, __props__=None);func GetReplicationGroup(ctx *Context, name string, id IDInput, state *ReplicationGroupState, opts ...ResourceOption) (*ReplicationGroup, error)public static ReplicationGroup Get(string name, Input<string> id, ReplicationGroupState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Apply
Immediately bool Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is
false.- At
Rest boolEncryption Enabled Whether to enable encryption at rest.
- Auth
Token string The password used to access a password protected server. Can be specified only if
transit_encryption_enabled = true.- Auto
Minor boolVersion Upgrade Specifies whether a minor engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Defaults to
true.- Automatic
Failover boolEnabled Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to
false.- Availability
Zones List<string> A list of EC2 availability zones in which the replication group’s cache clusters will be created. The order of the availability zones in the list is not important.
- Cluster
Mode ReplicationGroup Cluster Mode Args Create a native redis cluster.
automatic_failover_enabledmust be set to true. Cluster Mode documented below. Only 1cluster_modeblock is allowed.- Configuration
Endpoint stringAddress The address of the replication group configuration endpoint when cluster mode is enabled.
- Engine string
The name of the cache engine to be used for the clusters in this replication group. e.g.
redis- Engine
Version string The version number of the cache engine to be used for the cache clusters in this replication group.
- Kms
Key stringId The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if
at_rest_encryption_enabled = true.- Maintenance
Window string Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- Member
Clusters List<string> The identifiers of all the nodes that are part of this replication group.
- Node
Type string The compute and memory capacity of the nodes in the node group.
- Notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- Number
Cache intClusters The number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications.
- Parameter
Group stringName 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.
- Port int
The port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379.
- Primary
Endpoint stringAddress (Redis only) The address of the endpoint for the primary node in the replication group, if the cluster mode is disabled.
- Replication
Group stringDescription A user-created description for the replication group.
- Replication
Group stringId The replication group identifier. This parameter is stored as a lowercase string.
- Security
Group List<string>Ids 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
- Security
Group List<string>Names A list of cache security group names to associate with this replication group.
- Snapshot
Arns List<string> A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. Example:
arn:aws:s3:::my_bucket/snapshot1.rdb- Snapshot
Name string The name of a snapshot from which to restore data into the new node group. Changing the
snapshot_nameforces a new resource.- Snapshot
Retention intLimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a
snapshot_retention_limitis not supported on cache.t1.micro or cache.t2.* cache nodes- Snapshot
Window string The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example:
05:00-09:00- Subnet
Group stringName The name of the cache subnet group to be used for the replication group.
- Dictionary<string, string>
A map of tags to assign to the resource
- Transit
Encryption boolEnabled Whether to enable encryption in transit.
- Apply
Immediately bool Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is
false.- At
Rest boolEncryption Enabled Whether to enable encryption at rest.
- Auth
Token string The password used to access a password protected server. Can be specified only if
transit_encryption_enabled = true.- Auto
Minor boolVersion Upgrade Specifies whether a minor engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Defaults to
true.- Automatic
Failover boolEnabled Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to
false.- Availability
Zones []string A list of EC2 availability zones in which the replication group’s cache clusters will be created. The order of the availability zones in the list is not important.
- Cluster
Mode ReplicationGroup Cluster Mode Create a native redis cluster.
automatic_failover_enabledmust be set to true. Cluster Mode documented below. Only 1cluster_modeblock is allowed.- Configuration
Endpoint stringAddress The address of the replication group configuration endpoint when cluster mode is enabled.
- Engine string
The name of the cache engine to be used for the clusters in this replication group. e.g.
redis- Engine
Version string The version number of the cache engine to be used for the cache clusters in this replication group.
- Kms
Key stringId The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if
at_rest_encryption_enabled = true.- Maintenance
Window string Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- Member
Clusters []string The identifiers of all the nodes that are part of this replication group.
- Node
Type string The compute and memory capacity of the nodes in the node group.
- Notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- Number
Cache intClusters The number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications.
- Parameter
Group stringName 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.
- Port int
The port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379.
- Primary
Endpoint stringAddress (Redis only) The address of the endpoint for the primary node in the replication group, if the cluster mode is disabled.
- Replication
Group stringDescription A user-created description for the replication group.
- Replication
Group stringId The replication group identifier. This parameter is stored as a lowercase string.
- Security
Group []stringIds 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
- Security
Group []stringNames A list of cache security group names to associate with this replication group.
- Snapshot
Arns []string A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. Example:
arn:aws:s3:::my_bucket/snapshot1.rdb- Snapshot
Name string The name of a snapshot from which to restore data into the new node group. Changing the
snapshot_nameforces a new resource.- Snapshot
Retention intLimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a
snapshot_retention_limitis not supported on cache.t1.micro or cache.t2.* cache nodes- Snapshot
Window string The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example:
05:00-09:00- Subnet
Group stringName The name of the cache subnet group to be used for the replication group.
- map[string]string
A map of tags to assign to the resource
- Transit
Encryption boolEnabled Whether to enable encryption in transit.
- apply
Immediately boolean Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is
false.- at
Rest booleanEncryption Enabled Whether to enable encryption at rest.
- auth
Token string The password used to access a password protected server. Can be specified only if
transit_encryption_enabled = true.- auto
Minor booleanVersion Upgrade Specifies whether a minor engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Defaults to
true.- automatic
Failover booleanEnabled Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to
false.- availability
Zones string[] A list of EC2 availability zones in which the replication group’s cache clusters will be created. The order of the availability zones in the list is not important.
- cluster
Mode ReplicationGroup Cluster Mode Create a native redis cluster.
automatic_failover_enabledmust be set to true. Cluster Mode documented below. Only 1cluster_modeblock is allowed.- configuration
Endpoint stringAddress The address of the replication group configuration endpoint when cluster mode is enabled.
- engine string
The name of the cache engine to be used for the clusters in this replication group. e.g.
redis- engine
Version string The version number of the cache engine to be used for the cache clusters in this replication group.
- kms
Key stringId The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if
at_rest_encryption_enabled = true.- maintenance
Window string Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- member
Clusters string[] The identifiers of all the nodes that are part of this replication group.
- node
Type string The compute and memory capacity of the nodes in the node group.
- notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- number
Cache numberClusters The number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications.
- parameter
Group stringName 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.
- port number
The port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379.
- primary
Endpoint stringAddress (Redis only) The address of the endpoint for the primary node in the replication group, if the cluster mode is disabled.
- replication
Group stringDescription A user-created description for the replication group.
- replication
Group stringId The replication group identifier. This parameter is stored as a lowercase string.
- security
Group string[]Ids 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
- security
Group string[]Names A list of cache security group names to associate with this replication group.
- snapshot
Arns string[] A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. Example:
arn:aws:s3:::my_bucket/snapshot1.rdb- snapshot
Name string The name of a snapshot from which to restore data into the new node group. Changing the
snapshot_nameforces a new resource.- snapshot
Retention numberLimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a
snapshot_retention_limitis not supported on cache.t1.micro or cache.t2.* cache nodes- snapshot
Window string The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example:
05:00-09:00- subnet
Group stringName The name of the cache subnet group to be used for the replication group.
- {[key: string]: string}
A map of tags to assign to the resource
- transit
Encryption booleanEnabled Whether to enable encryption in transit.
- apply_
immediately bool Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is
false.- at_
rest_ boolencryption_ enabled Whether to enable encryption at rest.
- auth_
token str The password used to access a password protected server. Can be specified only if
transit_encryption_enabled = true.- auto_
minor_ boolversion_ upgrade Specifies whether a minor engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Defaults to
true.- automatic_
failover_ boolenabled Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to
false.- availability_
zones List[str] A list of EC2 availability zones in which the replication group’s cache clusters will be created. The order of the availability zones in the list is not important.
- cluster_
mode Dict[ReplicationGroup Cluster Mode] Create a native redis cluster.
automatic_failover_enabledmust be set to true. Cluster Mode documented below. Only 1cluster_modeblock is allowed.- configuration_
endpoint_ straddress The address of the replication group configuration endpoint when cluster mode is enabled.
- engine str
The name of the cache engine to be used for the clusters in this replication group. e.g.
redis- engine_
version str The version number of the cache engine to be used for the cache clusters in this replication group.
- kms_
key_ strid The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if
at_rest_encryption_enabled = true.- maintenance_
window str Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- member_
clusters List[str] The identifiers of all the nodes that are part of this replication group.
- node_
type str The compute and memory capacity of the nodes in the node group.
- notification_
topic_ strarn An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- number_
cache_ floatclusters The number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications.
- parameter_
group_ strname 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.
- port float
The port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379.
- primary_
endpoint_ straddress (Redis only) The address of the endpoint for the primary node in the replication group, if the cluster mode is disabled.
- replication_
group_ strdescription A user-created description for the replication group.
- replication_
group_ strid The replication group identifier. This parameter is stored as a lowercase string.
- security_
group_ List[str]ids 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
- security_
group_ List[str]names A list of cache security group names to associate with this replication group.
- snapshot_
arns List[str] A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. Example:
arn:aws:s3:::my_bucket/snapshot1.rdb- snapshot_
name str The name of a snapshot from which to restore data into the new node group. Changing the
snapshot_nameforces a new resource.- snapshot_
retention_ floatlimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a
snapshot_retention_limitis not supported on cache.t1.micro or cache.t2.* cache nodes- snapshot_
window str The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example:
05:00-09:00- subnet_
group_ strname The name of the cache subnet group to be used for the replication group.
- Dict[str, str]
A map of tags to assign to the resource
- transit_
encryption_ boolenabled Whether to enable encryption in transit.
Supporting Types
ReplicationGroupClusterMode
- Num
Node intGroups Specify the number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other settings modifications.
- Replicas
Per intNode Group Specify the number of replica nodes in each node group. Valid values are 0 to 5. Changing this number will force a new resource.
- Num
Node intGroups Specify the number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other settings modifications.
- Replicas
Per intNode Group Specify the number of replica nodes in each node group. Valid values are 0 to 5. Changing this number will force a new resource.
- num
Node numberGroups Specify the number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other settings modifications.
- replicas
Per numberNode Group Specify the number of replica nodes in each node group. Valid values are 0 to 5. Changing this number will force a new resource.
- num
Node floatGroups Specify the number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other settings modifications.
- replicas
Per floatNode Group Specify the number of replica nodes in each node group. Valid values are 0 to 5. Changing this number will force a new resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.