Use this URL for the source of the module. See the usage examples below for more details.
github.com/pbs/terraform-aws-elasticache-redis-standalone-module?ref=x.y.z
More information can be found on these install methods and more in the documentation here.
Provisions an Elasticache Redis (or Valkey) cluster (with Cluster Mode Disabled).
ℹ️ Note the confusing terminology around
Cluster Mode
. TheCluster Mode
setting is a Redis feature that allows data to be sharded among nodes in a cluster, and requires some additional configuration to connect with it correctly. A Redis cluster that does not haveCluster Mode
enabled is a set of standalone Redis nodes that have a single primary node for reading and writing and replica nodes for reading.
By default, it will provision one writer and one reader node, but that can be adjusted by setting the nodes
variable to a different value.
This module also assumes that connections are established through a private DNS record created in Route53. This makes it so that replacement of the ElastiCache cluster can be made in a fashion that is transparent to application configurations. This can be adjusted by setting create_dns
to false
.
Integrate this module like so:
module "redis" {
source = "github.com/pbs/terraform-aws-elasticache-redis-standalone-module?ref=x.y.z"
# Tagging Parameters
organization = var.organization
environment = var.environment
product = var.product
repo = var.repo
# Optional Parameters
}
If this repo is added as a subtree, then the version of the module should be close to the version shown here:
x.y.z
Note, however that subtrees can be altered as desired within repositories.
Further documentation on usage can be found here.
Below is automatically generated documentation on this Terraform module using terraform-docs