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.
{"treedata":{"name":"root","toggled":true,"children":[{"name":".circleci","children":[{"name":"config.yml","path":".circleci/config.yml","sha":"1bc85ec3a200e8d740f424d7e6a4f8c1e869b1cf"},{"name":"post-upgrade-test-results.sh","path":".circleci/post-upgrade-test-results.sh","sha":"a4867e8fbdc334b7a90259568ee41ea577fbe764"},{"name":"set-upgrade-test-vars.sh","path":".circleci/set-upgrade-test-vars.sh","sha":"0d289ca9172f07aa927182f5caa7bbee5ed34f13"}]},{"name":".github","children":[{"name":"ISSUE_TEMPLATE","children":[{"name":"bug_report.md","path":".github/ISSUE_TEMPLATE/bug_report.md","sha":"d2e87e27c601e423865ed660ec697082470ca60f"},{"name":"feature_request.md","path":".github/ISSUE_TEMPLATE/feature_request.md","sha":"023a33099be2336476930c96e17ff1ba5dc55348"}]},{"name":"pull_request_template.md","path":".github/pull_request_template.md","sha":"6b100e40e323b5b07f40ed30616277c51c9f4b9e"}]},{"name":".gitignore","path":".gitignore","sha":"c816ce0f0e5ac5aeb14bcc0cc0ad002381f8bc99"},{"name":".pre-commit-config.yaml","path":".pre-commit-config.yaml","sha":"23068872ca60d7f40ae10c05ea8e5915d04056dc"},{"name":"CODEOWNERS","path":"CODEOWNERS","sha":"3bc8a8c8ee6e939522f988c5407a5d62b2d4ac26"},{"name":"LICENSE.txt","path":"LICENSE.txt","sha":"f4e3d9bd4717a044ed31ad847a300eee74371a78"},{"name":"README.md","path":"README.md","sha":"1521cd21f08f906dab626526813093bbbc158f5a"},{"name":"examples","children":[{"name":"elasticache_bastion_host","children":[{"name":"README.md","path":"examples/elasticache_bastion_host/README.md","sha":"2f79a6de2c864125ebc059ac08d9ef053306ecfc"},{"name":"main.tf","path":"examples/elasticache_bastion_host/main.tf","sha":"095255c2472c43aa031474553ee43500d56b87ff"},{"name":"outputs.tf","path":"examples/elasticache_bastion_host/outputs.tf","sha":"ed63b2572f3813bd183dc5c48d21ce606ac6392e"},{"name":"redis-cli-install.sh","path":"examples/elasticache_bastion_host/redis-cli-install.sh","sha":"2ccd53ce730eb639413f26422fdac7a7eaeedffa"},{"name":"vars.tf","path":"examples/elasticache_bastion_host/vars.tf","sha":"8c5aba4d0fd661eee1fcd6c6bd5cf3943ff4cd73"}]},{"name":"memcached","children":[{"name":"README.md","path":"examples/memcached/README.md","sha":"25f3220196a9df56803eb2beb96d7ecca03f71ac"},{"name":"main.tf","path":"examples/memcached/main.tf","sha":"ac9357c9fab554ac9978b1fa78147c1f87e529c3"},{"name":"outputs.tf","path":"examples/memcached/outputs.tf","sha":"bc090567ef708bed42c4a64aaef937e8ae27b67a"},{"name":"vars.tf","path":"examples/memcached/vars.tf","sha":"eadad613f832bc0d23b1e45cafe241f94135d12d"}]},{"name":"redis","children":[{"name":"README.md","path":"examples/redis/README.md","sha":"4fa42b734382a224e1b296e0dc1c7120a193211d"},{"name":"main.tf","path":"examples/redis/main.tf","sha":"c484c6d8daef3e516806e7bf6a114ced0f96eec5"},{"name":"outputs.tf","path":"examples/redis/outputs.tf","sha":"c52d0992fa05f0687d5583cb27e0b34f04c19f71"},{"name":"vars.tf","path":"examples/redis/vars.tf","sha":"85fec2b3d209b6186e32d580c63520a6de763ebe"}]},{"name":"redis_copy_snapshot","children":[{"name":"README.md","path":"examples/redis_copy_snapshot/README.md","sha":"ff193cc8f6e0d2a796bc6d7c6ba97c147a27a238"},{"name":"main.tf","path":"examples/redis_copy_snapshot/main.tf","sha":"b1dbc4793bdcfbdfaa7638e5fbc58636ea1c2f92"},{"name":"outputs.tf","path":"examples/redis_copy_snapshot/outputs.tf","sha":"92cacac6cb2652ac0b6b7d2ae572a1a460e41719"},{"name":"vars.tf","path":"examples/redis_copy_snapshot/vars.tf","sha":"a8b755e0fdb353054e1af2b6b15d557b03a37ff1"}]},{"name":"redis_single_instance","children":[{"name":"README.md","path":"examples/redis_single_instance/README.md","sha":"4fa42b734382a224e1b296e0dc1c7120a193211d"},{"name":"main.tf","path":"examples/redis_single_instance/main.tf","sha":"9623e58defa91203405eda521b940f184dc8ec9a"},{"name":"outputs.tf","path":"examples/redis_single_instance/outputs.tf","sha":"061e0694468400960c507c63c96562d4bc7c2137"},{"name":"vars.tf","path":"examples/redis_single_instance/vars.tf","sha":"7e05023e51ac194e4ab5ae523925b1b24b080ddf"}]},{"name":"redis_with_auth_token","children":[{"name":"README.md","path":"examples/redis_with_auth_token/README.md","sha":"d33e94e9a9cada95aaf64a4f001732a60ed273a6"},{"name":"main.tf","path":"examples/redis_with_auth_token/main.tf","sha":"493e62bce940089b92ed8b41ee009d4b4a28565e"},{"name":"outputs.tf","path":"examples/redis_with_auth_token/outputs.tf","sha":"c52d0992fa05f0687d5583cb27e0b34f04c19f71"},{"name":"vars.tf","path":"examples/redis_with_auth_token/vars.tf","sha":"cf892d3f32b73a6b2411087aa5441e56422c94d0"}]},{"name":"redis_with_auto_scaling","children":[{"name":"README.md","path":"examples/redis_with_auto_scaling/README.md","sha":"f9bcdbde9516b877426e7f6c2c1bcde177483bab"},{"name":"main.tf","path":"examples/redis_with_auto_scaling/main.tf","sha":"240956fc62422756a0399bee4564d6170d6701a2"},{"name":"outputs.tf","path":"examples/redis_with_auto_scaling/outputs.tf","sha":"571b69d7463ab7f9032ca2b5d70dbc33eb0b646e"},{"name":"vars.tf","path":"examples/redis_with_auto_scaling/vars.tf","sha":"ad07361697e2ebac23995ba1cb26689a44a00de7"}]},{"name":"redis_with_sharding","children":[{"name":"README.md","path":"examples/redis_with_sharding/README.md","sha":"15db6dcbe096133c0be14055a6ac7aa91d3092fa"},{"name":"main.tf","path":"examples/redis_with_sharding/main.tf","sha":"f852c4f006c0f50e965c883fec4a069efbd2e46d"},{"name":"outputs.tf","path":"examples/redis_with_sharding/outputs.tf","sha":"571b69d7463ab7f9032ca2b5d70dbc33eb0b646e"},{"name":"vars.tf","path":"examples/redis_with_sharding/vars.tf","sha":"38e5a2fdfe9234cb70c0d22e0f3781d4c3b6199d"}]},{"name":"redis_with_user_group_id","children":[{"name":"README.md","path":"examples/redis_with_user_group_id/README.md","sha":"43d59aaa30561d2e108a79632340da19c96e1989"},{"name":"main.tf","path":"examples/redis_with_user_group_id/main.tf","sha":"d6aa7b705aee734928c15083c2f397f6345646c8"},{"name":"outputs.tf","path":"examples/redis_with_user_group_id/outputs.tf","sha":"c52d0992fa05f0687d5583cb27e0b34f04c19f71"},{"name":"vars.tf","path":"examples/redis_with_user_group_id/vars.tf","sha":"715db05764e8a984b350748e3b812cf8f4bc5f02"}]}]},{"name":"modules","children":[{"name":"elastic-cache","children":[{"name":"README.md","path":"modules/elastic-cache/README.md","sha":"ddfa792dec8880597838c035637508b2107ca8ac"},{"name":"main.tf","path":"modules/elastic-cache/main.tf","sha":"0d55a8ae46259ec3c7375b8f049112aa7a0b1d30"},{"name":"outputs.tf","path":"modules/elastic-cache/outputs.tf","sha":"d06f7754cd290a0564acf247c75616b7d9fb376d"},{"name":"vars.tf","path":"modules/elastic-cache/vars.tf","sha":"c521fe91fc7b26cf7f929242b5d5102241fe6cf3"}]},{"name":"memcached","children":[{"name":"README.md","path":"modules/memcached/README.md","sha":"c5d3f4dc902f551347f460c0442ae8a0991ede04","toggled":true},{"name":"main.tf","path":"modules/memcached/main.tf","sha":"f5d9c682bc1f9b7cdeec7a9568f38d4b24a76e9a"},{"name":"outputs.tf","path":"modules/memcached/outputs.tf","sha":"bcfc047b98700eab8e90005207c56c76443ac889"},{"name":"vars.tf","path":"modules/memcached/vars.tf","sha":"da98e60b8678e612cc842b5d373070ae1d7ee225"}],"toggled":true},{"name":"redis","children":[{"name":"README.md","path":"modules/redis/README.md","sha":"8f8098a443520cae8b9921d67345ccfa2307e302"},{"name":"main.tf","path":"modules/redis/main.tf","sha":"cf286cacf506926d7f952f3a237d0041478dbb4d"},{"name":"outputs.tf","path":"modules/redis/outputs.tf","sha":"991f74facba639eb60059df50581162311359472"},{"name":"vars.tf","path":"modules/redis/vars.tf","sha":"6adfc8eef079a5b1c39ff46979a08d95bba0008c"}]},{"name":"redis_copy_snapshot","children":[{"name":"README.md","path":"modules/redis_copy_snapshot/README.md","sha":"1f5cbae6c9cd26fd5621cf42c6a4fbe6789bda0c"},{"name":"main.tf","path":"modules/redis_copy_snapshot/main.tf","sha":"c2896827bb4f41dea2accf429bebb9a7119a2838"},{"name":"outputs.tf","path":"modules/redis_copy_snapshot/outputs.tf","sha":"32f0c0ccd6524757bf1b4c02cb48d33090d6ddd6"},{"name":"redis-copy-snapshot","children":[{"name":"index.py","path":"modules/redis_copy_snapshot/redis-copy-snapshot/index.py","sha":"f6a211b527de2c0a1ad56681fb78216e531b1eb2"}]},{"name":"vars.tf","path":"modules/redis_copy_snapshot/vars.tf","sha":"bc38a3fd66ca21e6bbc1a1e7d638eff5efcaf7b6"}]}],"toggled":true},{"name":"terraform-cloud-enterprise-private-module-registry-placeholder.tf","path":"terraform-cloud-enterprise-private-module-registry-placeholder.tf","sha":"ae586c0fe830819580e1009d41a9074f16e65bed"},{"name":"test","children":[{"name":"README.md","path":"test/README.md","sha":"09098790510ea89ab30850b01fa25e69f2730457"},{"name":"example_memcached_connection.go","path":"test/example_memcached_connection.go","sha":"7e1e51e64346c2646ef01aafc376ea69239dd781"},{"name":"example_memcached_test.go","path":"test/example_memcached_test.go","sha":"1ba2b92d1d37aeb9b55e5c28d02ac359caed5e9e"},{"name":"example_redis_connection.go","path":"test/example_redis_connection.go","sha":"28442755bdcfe0eea2919554eb4c2b8b789a87a0"},{"name":"example_redis_test.go","path":"test/example_redis_test.go","sha":"016afbc469e3001109c5cc9a7d0ca7dc4f37dfa1"},{"name":"example_util_functions.go","path":"test/example_util_functions.go","sha":"9deb8ef8a4a9621618fdf8e9512727e69b4f62e9"},{"name":"go.mod","path":"test/go.mod","sha":"da9ce050b81081dfbd91ea01bbe9050b75256bad"},{"name":"go.sum","path":"test/go.sum","sha":"7ef564d3e21815e6fabf3796378b8f14fa19a25e"},{"name":"upgrades","children":[{"name":"upgrade_test.go","path":"test/upgrades/upgrade_test.go","sha":"4a2a0d73b48f76e58ee242f071ecf5fcba4e883d"}]},{"name":"validation","children":[{"name":"validate_all_modules_and_examples_test.go","path":"test/validation/validate_all_modules_and_examples_test.go","sha":"33d73c385b64c4fc870033e99427e683c31dc45a"}]}]}]},"detailsContent":"<h1 class=\"preview__body--title\" id=\"memcached-module\">Memcached Module</h1><div class=\"preview__body--border\"></div><p>This module creates an ElastiCache cluster that runs <a href=\"https://memcached.org/\" class=\"preview__body--description--blue\" target=\"_blank\">Memcached</a>.</p>\n<h2 class=\"preview__body--subtitle\" id=\"how-do-you-use-this-module\">How do you use this module?</h2>\n<p>See the <a href=\"/repos/v0.9.0/module-cache/examples/memcached\" class=\"preview__body--description--blue\">memcached example</a> for an example.</p>\n<h2 class=\"preview__body--subtitle\" id=\"how-do-you-connect-to-the-memcached-cluster\">How do you connect to the Memcached cluster?</h2>\n<p>This module outputs a <a href=\"https://www.terraform.io/intro/getting-started/outputs.html\" class=\"preview__body--description--blue\" target=\"_blank\">Terraform output variable</a> that\ncontains a comma-separated list of addresses of the Memcached nodes. You can programmatically extract this variable in\nyour Terraform templates and pass it to other resources (e.g. as an environment variable in an EC2 instance). You'll\nalso see the variable at the end of each <code>terraform apply</code> call or if you run <code>terraform output</code>.</p>\n<h2 class=\"preview__body--subtitle\" id=\"how-do-you-scale-this-memcached-cluster\">How do you scale this Memcached cluster?</h2>\n<ul>\n<li>To scale vertically, increase the size of the nodes using the <code>instance_type</code> parameter (see\n<a href=\"https://aws.amazon.com/elasticache/details/#Available_Cache_Node_Types\" class=\"preview__body--description--blue\" target=\"_blank\">here</a> for valid values).</li>\n<li>To scale horizontally, increase the number of nodes using the <code>num_cache_nodes</code> parameter.</li>\n</ul>\n<p>For more info, see <a href=\"http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Scaling.Memcached.html\" class=\"preview__body--description--blue\" target=\"_blank\">Scaling Memcached</a>.</p>\n","repoName":"module-cache","repoRef":"v0.22.2","serviceDescriptor":{"serviceName":"Memcached","serviceRepoName":"module-cache","serviceRepoOrg":"gruntwork-io","serviceMainReadmePath":"/modules/memcached","cloudProviders":["aws"],"description":"Run a Memcached cluster using Amazon’s ElastiCache Service. Supports replication, multi-zone automatic failover, and automatic backup.","imageUrl":"memcached.png","licenseType":"subscriber","technologies":["Terraform","Bash"],"compliance":[],"tags":[""]},"serviceCategoryName":"NoSQL","fileName":"README.md","filePath":"/modules/memcached","title":"Repo Browser: Memcached","description":"Browse the repos in the Gruntwork Infrastructure as Code Library."}