Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Use this data source to get information about an ElastiCache Replication Group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bar = aws.elasticache.getReplicationGroup({
replicationGroupId: "example",
});
import pulumi
import pulumi_aws as aws
bar = aws.elasticache.get_replication_group(replication_group_id="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/elasticache"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elasticache.LookupReplicationGroup(ctx, &elasticache.LookupReplicationGroupArgs{
ReplicationGroupId: "example",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var bar = Aws.ElastiCache.GetReplicationGroup.Invoke(new()
{
ReplicationGroupId = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticache.ElasticacheFunctions;
import com.pulumi.aws.elasticache.inputs.GetReplicationGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var bar = ElasticacheFunctions.getReplicationGroup(GetReplicationGroupArgs.builder()
.replicationGroupId("example")
.build());
}
}
variables:
bar:
fn::invoke:
function: aws:elasticache:getReplicationGroup
arguments:
replicationGroupId: example
Using getReplicationGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReplicationGroup(args: GetReplicationGroupArgs, opts?: InvokeOptions): Promise<GetReplicationGroupResult>
function getReplicationGroupOutput(args: GetReplicationGroupOutputArgs, opts?: InvokeOptions): Output<GetReplicationGroupResult>def get_replication_group(region: Optional[str] = None,
replication_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetReplicationGroupResult
def get_replication_group_output(region: Optional[pulumi.Input[str]] = None,
replication_group_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReplicationGroupResult]func LookupReplicationGroup(ctx *Context, args *LookupReplicationGroupArgs, opts ...InvokeOption) (*LookupReplicationGroupResult, error)
func LookupReplicationGroupOutput(ctx *Context, args *LookupReplicationGroupOutputArgs, opts ...InvokeOption) LookupReplicationGroupResultOutput> Note: This function is named LookupReplicationGroup in the Go SDK.
public static class GetReplicationGroup
{
public static Task<GetReplicationGroupResult> InvokeAsync(GetReplicationGroupArgs args, InvokeOptions? opts = null)
public static Output<GetReplicationGroupResult> Invoke(GetReplicationGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReplicationGroupResult> getReplicationGroup(GetReplicationGroupArgs args, InvokeOptions options)
public static Output<GetReplicationGroupResult> getReplicationGroup(GetReplicationGroupArgs args, InvokeOptions options)
fn::invoke:
function: aws:elasticache/getReplicationGroup:getReplicationGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Replication
Group stringId - Identifier for the replication group.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Replication
Group stringId - Identifier for the replication group.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- replication
Group StringId - Identifier for the replication group.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- replication
Group stringId - Identifier for the replication group.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- replication_
group_ strid - Identifier for the replication group.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- replication
Group StringId - Identifier for the replication group.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
getReplicationGroup Result
The following output properties are available:
- Arn string
- ARN of the created ElastiCache Replication Group.
- Auth
Token boolEnabled - Whether an AuthToken (password) is enabled.
- Automatic
Failover boolEnabled - Whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- Cluster
Mode string - Whether cluster mode is enabled or disabled.
- Configuration
Endpoint stringAddress - Configuration endpoint address to allow host discovery.
- Description string
- Description of the replication group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Delivery List<GetConfigurations Replication Group Log Delivery Configuration> - Redis SLOWLOG or Redis Engine Log delivery settings.
- Member
Clusters List<string> - Identifiers of all the nodes that are part of this replication group.
- Multi
Az boolEnabled - Whether Multi-AZ Support is enabled for the replication group.
- Node
Group List<GetConfigurations Replication Group Node Group Configuration> - Configuration of the node groups (shards). See below.
- Node
Type string - Cluster node type.
- Num
Cache intClusters - Number of cache clusters that the replication group has.
- Num
Node intGroups - Number of node groups (shards) for the replication group.
- Port int
- Port number on which the configuration endpoint will accept connections.
- Primary
Endpoint stringAddress - Endpoint of the primary node in this node group (shard).
- Reader
Endpoint stringAddress - Endpoint of the reader node in this node group (shard).
- Region string
- Replicas
Per intNode Group - Number of replica nodes in each node group.
- Replication
Group stringId - Snapshot
Retention intLimit - Number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- Snapshot
Window string - Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- Arn string
- ARN of the created ElastiCache Replication Group.
- Auth
Token boolEnabled - Whether an AuthToken (password) is enabled.
- Automatic
Failover boolEnabled - Whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- Cluster
Mode string - Whether cluster mode is enabled or disabled.
- Configuration
Endpoint stringAddress - Configuration endpoint address to allow host discovery.
- Description string
- Description of the replication group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Delivery []GetConfigurations Replication Group Log Delivery Configuration - Redis SLOWLOG or Redis Engine Log delivery settings.
- Member
Clusters []string - Identifiers of all the nodes that are part of this replication group.
- Multi
Az boolEnabled - Whether Multi-AZ Support is enabled for the replication group.
- Node
Group []GetConfigurations Replication Group Node Group Configuration - Configuration of the node groups (shards). See below.
- Node
Type string - Cluster node type.
- Num
Cache intClusters - Number of cache clusters that the replication group has.
- Num
Node intGroups - Number of node groups (shards) for the replication group.
- Port int
- Port number on which the configuration endpoint will accept connections.
- Primary
Endpoint stringAddress - Endpoint of the primary node in this node group (shard).
- Reader
Endpoint stringAddress - Endpoint of the reader node in this node group (shard).
- Region string
- Replicas
Per intNode Group - Number of replica nodes in each node group.
- Replication
Group stringId - Snapshot
Retention intLimit - Number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- Snapshot
Window string - Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- arn String
- ARN of the created ElastiCache Replication Group.
- auth
Token BooleanEnabled - Whether an AuthToken (password) is enabled.
- automatic
Failover BooleanEnabled - Whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- cluster
Mode String - Whether cluster mode is enabled or disabled.
- configuration
Endpoint StringAddress - Configuration endpoint address to allow host discovery.
- description String
- Description of the replication group.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Delivery List<GetConfigurations Replication Group Log Delivery Configuration> - Redis SLOWLOG or Redis Engine Log delivery settings.
- member
Clusters List<String> - Identifiers of all the nodes that are part of this replication group.
- multi
Az BooleanEnabled - Whether Multi-AZ Support is enabled for the replication group.
- node
Group List<GetConfigurations Replication Group Node Group Configuration> - Configuration of the node groups (shards). See below.
- node
Type String - Cluster node type.
- num
Cache IntegerClusters - Number of cache clusters that the replication group has.
- num
Node IntegerGroups - Number of node groups (shards) for the replication group.
- port Integer
- Port number on which the configuration endpoint will accept connections.
- primary
Endpoint StringAddress - Endpoint of the primary node in this node group (shard).
- reader
Endpoint StringAddress - Endpoint of the reader node in this node group (shard).
- region String
- replicas
Per IntegerNode Group - Number of replica nodes in each node group.
- replication
Group StringId - snapshot
Retention IntegerLimit - Number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- snapshot
Window String - Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- arn string
- ARN of the created ElastiCache Replication Group.
- auth
Token booleanEnabled - Whether an AuthToken (password) is enabled.
- automatic
Failover booleanEnabled - Whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- cluster
Mode string - Whether cluster mode is enabled or disabled.
- configuration
Endpoint stringAddress - Configuration endpoint address to allow host discovery.
- description string
- Description of the replication group.
- id string
- The provider-assigned unique ID for this managed resource.
- log
Delivery GetConfigurations Replication Group Log Delivery Configuration[] - Redis SLOWLOG or Redis Engine Log delivery settings.
- member
Clusters string[] - Identifiers of all the nodes that are part of this replication group.
- multi
Az booleanEnabled - Whether Multi-AZ Support is enabled for the replication group.
- node
Group GetConfigurations Replication Group Node Group Configuration[] - Configuration of the node groups (shards). See below.
- node
Type string - Cluster node type.
- num
Cache numberClusters - Number of cache clusters that the replication group has.
- num
Node numberGroups - Number of node groups (shards) for the replication group.
- port number
- Port number on which the configuration endpoint will accept connections.
- primary
Endpoint stringAddress - Endpoint of the primary node in this node group (shard).
- reader
Endpoint stringAddress - Endpoint of the reader node in this node group (shard).
- region string
- replicas
Per numberNode Group - Number of replica nodes in each node group.
- replication
Group stringId - snapshot
Retention numberLimit - Number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- snapshot
Window string - Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- arn str
- ARN of the created ElastiCache Replication Group.
- auth_
token_ boolenabled - Whether an AuthToken (password) is enabled.
- automatic_
failover_ boolenabled - Whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- cluster_
mode str - Whether cluster mode is enabled or disabled.
- configuration_
endpoint_ straddress - Configuration endpoint address to allow host discovery.
- description str
- Description of the replication group.
- id str
- The provider-assigned unique ID for this managed resource.
- log_
delivery_ Sequence[Getconfigurations Replication Group Log Delivery Configuration] - Redis SLOWLOG or Redis Engine Log delivery settings.
- member_
clusters Sequence[str] - Identifiers of all the nodes that are part of this replication group.
- multi_
az_ boolenabled - Whether Multi-AZ Support is enabled for the replication group.
- node_
group_ Sequence[Getconfigurations Replication Group Node Group Configuration] - Configuration of the node groups (shards). See below.
- node_
type str - Cluster node type.
- num_
cache_ intclusters - Number of cache clusters that the replication group has.
- num_
node_ intgroups - Number of node groups (shards) for the replication group.
- port int
- Port number on which the configuration endpoint will accept connections.
- primary_
endpoint_ straddress - Endpoint of the primary node in this node group (shard).
- reader_
endpoint_ straddress - Endpoint of the reader node in this node group (shard).
- region str
- replicas_
per_ intnode_ group - Number of replica nodes in each node group.
- replication_
group_ strid - snapshot_
retention_ intlimit - Number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- snapshot_
window str - Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- arn String
- ARN of the created ElastiCache Replication Group.
- auth
Token BooleanEnabled - Whether an AuthToken (password) is enabled.
- automatic
Failover BooleanEnabled - Whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- cluster
Mode String - Whether cluster mode is enabled or disabled.
- configuration
Endpoint StringAddress - Configuration endpoint address to allow host discovery.
- description String
- Description of the replication group.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Delivery List<Property Map>Configurations - Redis SLOWLOG or Redis Engine Log delivery settings.
- member
Clusters List<String> - Identifiers of all the nodes that are part of this replication group.
- multi
Az BooleanEnabled - Whether Multi-AZ Support is enabled for the replication group.
- node
Group List<Property Map>Configurations - Configuration of the node groups (shards). See below.
- node
Type String - Cluster node type.
- num
Cache NumberClusters - Number of cache clusters that the replication group has.
- num
Node NumberGroups - Number of node groups (shards) for the replication group.
- port Number
- Port number on which the configuration endpoint will accept connections.
- primary
Endpoint StringAddress - Endpoint of the primary node in this node group (shard).
- reader
Endpoint StringAddress - Endpoint of the reader node in this node group (shard).
- region String
- replicas
Per NumberNode Group - Number of replica nodes in each node group.
- replication
Group StringId - snapshot
Retention NumberLimit - Number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- snapshot
Window String - Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
Supporting Types
GetReplicationGroupLogDeliveryConfiguration
- Destination string
- Destination
Type string - Log
Format string - Log
Type string
- Destination string
- Destination
Type string - Log
Format string - Log
Type string
- destination String
- destination
Type String - log
Format String - log
Type String
- destination string
- destination
Type string - log
Format string - log
Type string
- destination str
- destination_
type str - log_
format str - log_
type str
- destination String
- destination
Type String - log
Format String - log
Type String
GetReplicationGroupNodeGroupConfiguration
- Node
Group stringId - ID of the node group.
- Primary
Availability stringZone - Availability Zone for the primary node.
- Primary
Outpost stringArn - Outpost ARN of the primary node.
- Replica
Availability List<string>Zones - List of Availability Zones for the replica nodes.
- Replica
Count int - Number of replica nodes in this node group.
- Replica
Outpost List<string>Arns - List of outpost ARNs for the replica nodes.
- Slots string
- Keyspace for this node group (shard).
- Node
Group stringId - ID of the node group.
- Primary
Availability stringZone - Availability Zone for the primary node.
- Primary
Outpost stringArn - Outpost ARN of the primary node.
- Replica
Availability []stringZones - List of Availability Zones for the replica nodes.
- Replica
Count int - Number of replica nodes in this node group.
- Replica
Outpost []stringArns - List of outpost ARNs for the replica nodes.
- Slots string
- Keyspace for this node group (shard).
- node
Group StringId - ID of the node group.
- primary
Availability StringZone - Availability Zone for the primary node.
- primary
Outpost StringArn - Outpost ARN of the primary node.
- replica
Availability List<String>Zones - List of Availability Zones for the replica nodes.
- replica
Count Integer - Number of replica nodes in this node group.
- replica
Outpost List<String>Arns - List of outpost ARNs for the replica nodes.
- slots String
- Keyspace for this node group (shard).
- node
Group stringId - ID of the node group.
- primary
Availability stringZone - Availability Zone for the primary node.
- primary
Outpost stringArn - Outpost ARN of the primary node.
- replica
Availability string[]Zones - List of Availability Zones for the replica nodes.
- replica
Count number - Number of replica nodes in this node group.
- replica
Outpost string[]Arns - List of outpost ARNs for the replica nodes.
- slots string
- Keyspace for this node group (shard).
- node_
group_ strid - ID of the node group.
- primary_
availability_ strzone - Availability Zone for the primary node.
- primary_
outpost_ strarn - Outpost ARN of the primary node.
- replica_
availability_ Sequence[str]zones - List of Availability Zones for the replica nodes.
- replica_
count int - Number of replica nodes in this node group.
- replica_
outpost_ Sequence[str]arns - List of outpost ARNs for the replica nodes.
- slots str
- Keyspace for this node group (shard).
- node
Group StringId - ID of the node group.
- primary
Availability StringZone - Availability Zone for the primary node.
- primary
Outpost StringArn - Outpost ARN of the primary node.
- replica
Availability List<String>Zones - List of Availability Zones for the replica nodes.
- replica
Count Number - Number of replica nodes in this node group.
- replica
Outpost List<String>Arns - List of outpost ARNs for the replica nodes.
- slots String
- Keyspace for this node group (shard).
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
