Skip to content

Files

Latest commit

 

History

History

redis-global-replication-group

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

ElastiCache example for Redis global replication group

Configuration in this directory creates:

  • Global replication group
  • Primary Redis replication group in us-east-1
  • Secondary Redis replication group in eu-west-1

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which will incur monetary charges on your AWS bill. Run terraform destroy when you no longer need these resources.

Requirements

Name Version
terraform >= 1.0
aws >= 5.73

Providers

Name Version
aws >= 5.73
aws.euwest1 >= 5.73

Modules

Name Source Version
elasticache_primary ../../ n/a
elasticache_secondary ../../ n/a
vpc_primary terraform-aws-modules/vpc/aws ~> 5.0
vpc_secondary terraform-aws-modules/vpc/aws ~> 5.0

Resources

Name Type
aws_availability_zones.primary data source
aws_availability_zones.secondary data source

Inputs

No inputs.

Outputs

Name Description
cloudwatch_log_groups Map of CloudWatch log groups created and their attributes
cluster_address (Memcached only) DNS name of the cache cluster without the port appended
cluster_arn The ARN of the ElastiCache Cluster
cluster_cache_nodes List of node objects including id, address, port and availability_zone
cluster_configuration_endpoint (Memcached only) Configuration endpoint to allow host discovery
cluster_engine_version_actual Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine
global_replication_group_arn ARN of the created ElastiCache Global Replication Group
global_replication_group_engine_version_actual The full version number of the cache engine running on the members of this global replication group
global_replication_group_id ID of the ElastiCache Global Replication Group
global_replication_group_node_groups Set of node groups (shards) on the global replication group
parameter_group_arn The AWS ARN associated with the parameter group
parameter_group_id The ElastiCache parameter group name
replication_group_arn ARN of the created ElastiCache Replication Group
replication_group_configuration_endpoint_address Address of the replication group configuration endpoint when cluster mode is enabled
replication_group_engine_version_actual Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine
replication_group_id ID of the ElastiCache Replication Group
replication_group_member_clusters Identifiers of all the nodes that are part of this replication group
replication_group_primary_endpoint_address Address of the endpoint for the primary node in the replication group, if the cluster mode is disabled
replication_group_reader_endpoint_address Address of the endpoint for the reader node in the replication group, if the cluster mode is disabled
security_group_arn Amazon Resource Name (ARN) of the security group
security_group_id ID of the security group
subnet_group_name The ElastiCache subnet group name

Apache-2.0 Licensed. See LICENSE.