Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconmodules
file-type-iconmemcached
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-iconredis
file-type-icontest
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md

Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconmodules
file-type-iconmemcached
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-iconredis
file-type-icontest
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
Memcached

Memcached

Run a Memcached cluster using Amazon’s ElastiCache Service. Supports replication, multi-zone automatic failover, and automatic backup.

Preview the Code

mobile file icon

README.md

down

Memcached Module

This module creates an ElastiCache cluster that runs Memcached.

How do you use this module?

See the memcached example for an example.

How do you connect to the Memcached cluster?

This module outputs a Terraform output variable that contains a comma-separated list of addresses of the Memcached nodes. You can programmatically extract this variable in your Terraform templates and pass it to other resources (e.g. as an environment variable in an EC2 instance). You'll also see the variable at the end of each terraform apply call or if you run terraform output.

How do you scale this Memcached cluster?

  • To scale vertically, increase the size of the nodes using the instance_type parameter (see here for valid values).
  • To scale horizontally, increase the number of nodes using the num_cache_nodes parameter.

For more info, see Scaling Memcached.

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?