Skip to content

nsbno/terraform-aws-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis using Elasticache

Setup for Redis using AWS Elasticache

Usage

Remember to check out the variables and outputs to see all options.

module "elasticache" {
  source = "github.com/nsbno/terraform-aws-redis?ref=x.y.z"

  application_name = "my-cool-train-status-thingy"
  security_group_ids = [aws_security_group.this.id]

  subnet_ids = data.aws_subnet_ids.private.ids
}

High Availability

The availability_zones variable decides if the cluster is spun up in high availability.

If it is set up, it will set up the amount of nodes needed to match the AZs and enable automatic failover.

Access

Only the given security_group_ids can access the cluster.

If you want to grant additional services access to the cluster, make sure to either add them to the list or manually grant access using the security_group_id output.