{"id":46337240,"url":"https://github.com/squareops/terraform-kubernetes-redis","last_synced_at":"2026-03-04T19:05:28.302Z","repository":{"id":173362734,"uuid":"612183193","full_name":"squareops/terraform-kubernetes-redis","owner":"squareops","description":"Terraform Redis module for easy provisioning and management inside Kubernetes","archived":false,"fork":false,"pushed_at":"2024-08-28T04:48:49.000Z","size":74,"stargazers_count":17,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-13T09:54:02.639Z","etag":null,"topics":["cache","database","kubernetes","redis","redis-backup","redis-cluster","terraform"],"latest_commit_sha":null,"homepage":"https://squareops.com","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squareops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-10T11:30:59.000Z","updated_at":"2025-10-13T13:50:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"81c41f6c-33e1-4ae9-8c85-24d568485f22","html_url":"https://github.com/squareops/terraform-kubernetes-redis","commit_stats":null,"previous_names":["squareops/terraform-kubernetes-redis"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/squareops/terraform-kubernetes-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squareops%2Fterraform-kubernetes-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squareops%2Fterraform-kubernetes-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squareops%2Fterraform-kubernetes-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squareops%2Fterraform-kubernetes-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squareops","download_url":"https://codeload.github.com/squareops/terraform-kubernetes-redis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squareops%2Fterraform-kubernetes-redis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30090041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T18:31:08.343Z","status":"ssl_error","status_checked_at":"2026-03-04T18:31:07.708Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","database","kubernetes","redis","redis-backup","redis-cluster","terraform"],"created_at":"2026-03-04T19:05:27.727Z","updated_at":"2026-03-04T19:05:28.288Z","avatar_url":"https://github.com/squareops.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Redis\n\n![squareops_avatar]\n\n[squareops_avatar]: https://squareops.com/wp-content/uploads/2022/12/squareops-logo.png\n\n### [SquareOps Technologies](https://squareops.com/) Your DevOps Partner for Accelerating cloud journey.\n\u003cbr\u003e\nThis module allows users to customize the deployment by providing various input variables. Users can specify the name and environment of the Redis deployment, the chart and app version, the namespace in which the Redis deployment will be created, and whether to enable Grafana monitoring. This module provides options to create a new namespace, and to configure recovery windows for AWS Secrets Manager, Azure key vault \u0026 GCP secrets manager. With this module, users can easily deploy a highly available redis on AWS EKS, Azure AKS \u0026 GCP GKE Kubernetes clusters with the flexibility to customize their configurations according to their needs.\n\u003cbr\u003e\u003cbr\u003e\nThis module creates a Redis master and one or more Redis slaves, depending on the specified architecture. The module creates Kubernetes services for the Redis master and slave deployments, and exposes these services as endpoints that can be used to connect to the Redis database. Users can retrieve these endpoints using the module's outputs.\n\n## Supported Versions :\n\n|  Redis Helm Chart Version    |     K8s supported version (EKS, AKS \u0026 GKE)  |  \n| :-----:                       |         :---                |\n| **19.6.1**                     |    **1.23,1.24,1.25,1.26,1.27,1.28,1.29**           |\n\n## Usage Example\n\n```hcl\nlocals {\n  name        = \"redis\"\n  region      = \"eastus\"\n  environment = \"prod\"\n  additional_tags = {\n    Owner      = \"organization_name\"\n    Expires    = \"Never\"\n    Department = \"Engineering\"\n  }\n  create_namespace                 = true\n  namespace                        = \"redis\"\n  store_password_to_secret_manager = true\n  custom_credentials_enabled       = true\n  custom_credentials_config = {\n    password = \"aajdhgduy3873683dh\"\n  }\n}\n\nmodule \"azure\" {\n  source                           = \"squareops/redis/kubernetes//modules/resources/azure\"\n  resource_group_name              = \"prod-skaf-rg\"\n  resource_group_location          = local.region\n  environment                      = local.environment\n  name                             = local.name\n  store_password_to_secret_manager = local.store_password_to_secret_manager\n  custom_credentials_enabled       = local.custom_credentials_enabled\n  custom_credentials_config        = local.custom_credentials_config\n}\n\nmodule \"redis\" {\n  source           = \"squareops/redis/kubernetes\"\n  create_namespace = local.create_namespace\n  namespace        = local.namespace\n  redis_config = {\n    name                             = local.name\n    values_yaml                      = \"\"\n    environment                      = local.environment\n    app_version                      = \"6.2.7-debian-11-r11\"\n    architecture                     = \"replication\"\n    slave_volume_size                = \"10Gi\"\n    master_volume_size               = \"10Gi\"\n    storage_class_name               = \"infra-service-sc\"\n    slave_replica_count              = 2\n    store_password_to_secret_manager = local.store_password_to_secret_manager\n    secret_provider_type             = \"azure\"\n  }\n  grafana_monitoring_enabled = true\n  custom_credentials_enabled = local.custom_credentials_enabled\n  custom_credentials_config  = local.custom_credentials_config\n  redis_password             = local.custom_credentials_enabled ? \"\" : module.azure.redis_password\n}\n\n\n\n```\n- Refer [AWS examples](https://github.com/squareops/terraform-kubernetes-redis/tree/main/examples/complete/aws) for more details.\n- Refer [Azure examples](https://github.com/squareops/terraform-kubernetes-redis/tree/main/examples/complete/azure) for more details.\n- Refer [GCP examples](https://github.com/squareops/terraform-kubernetes-redis/tree/main/examples/complete/gcp) for more details.\n\n## IAM Permissions\nThe required IAM permissions to create resources from this module can be found [here](https://github.com/squareops/terraform-kubernetes-redis/blob/main/IAM.md)\n\n## Important Notes\n  1. In order to enable the exporter, it is required to deploy Prometheus/Grafana first.\n  2. The exporter is a tool that extracts metrics data from an application or system and makes it available to be scraped by Prometheus.\n  3. Prometheus is a monitoring system that collects metrics data from various sources, including exporters, and stores it in a time-series database.\n  4. Grafana is a data visualization and dashboard tool that works with Prometheus and other data sources to display the collected metrics in a user-friendly way.\n  5. To deploy Prometheus/Grafana, please follow the installation instructions for each tool in their respective documentation.\n  6. Once Prometheus and Grafana are deployed, the exporter can be configured to scrape metrics data from your application or system and send it to Prometheus.\n  7. Finally, you can use Grafana to create custom dashboards and visualize the metrics data collected by Prometheus.\n  8. This module is compatible with EKS, AKS \u0026 GKE which is great news for users deploying the module on an AWS, Azure \u0026 GCP cloud. Review the module's documentation, meet specific configuration requirements, and test thoroughly after deployment to ensure everything works as expected.\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\nNo requirements.\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_helm\"\u003e\u003c/a\u003e [helm](#provider\\_helm) | n/a |\n| \u003ca name=\"provider_kubernetes\"\u003e\u003c/a\u003e [kubernetes](#provider\\_kubernetes) | n/a |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [helm_release.redis](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |\n| [kubernetes_namespace.redis](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_chart_version\"\u003e\u003c/a\u003e [chart\\_version](#input\\_chart\\_version) | Version of the chart for the Redis application that will be deployed. | `string` | `\"19.6.1\"` | no |\n| \u003ca name=\"input_create_namespace\"\u003e\u003c/a\u003e [create\\_namespace](#input\\_create\\_namespace) | Specify whether or not to create the namespace if it does not already exist. Set it to true to create the namespace. | `string` | `true` | no |\n| \u003ca name=\"input_custom_credentials_config\"\u003e\u003c/a\u003e [custom\\_credentials\\_config](#input\\_custom\\_credentials\\_config) | Specify the configuration settings for Redis to pass custom credentials during creation. | `any` | \u003cpre\u003e{\u003cbr\u003e  \"password\": \"\"\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_custom_credentials_enabled\"\u003e\u003c/a\u003e [custom\\_credentials\\_enabled](#input\\_custom\\_credentials\\_enabled) | Specifies whether to enable custom credentials for Redis. | `bool` | `false` | no |\n| \u003ca name=\"input_grafana_monitoring_enabled\"\u003e\u003c/a\u003e [grafana\\_monitoring\\_enabled](#input\\_grafana\\_monitoring\\_enabled) | Specify whether or not to deploy Redis exporter to collect Redis metrics for monitoring in Grafana. | `bool` | `false` | no |\n| \u003ca name=\"input_namespace\"\u003e\u003c/a\u003e [namespace](#input\\_namespace) | Namespace where the Redis resources will be deployed. | `string` | `\"redis\"` | no |\n| \u003ca name=\"input_recovery_window_aws_secret\"\u003e\u003c/a\u003e [recovery\\_window\\_aws\\_secret](#input\\_recovery\\_window\\_aws\\_secret) | Number of days that AWS Secrets Manager will wait before it can delete the secret. The value can be 0 to force deletion without recovery, or a range from 7 to 30 days. | `number` | `0` | no |\n| \u003ca name=\"input_redis_config\"\u003e\u003c/a\u003e [redis\\_config](#input\\_redis\\_config) | Specify the configuration settings for Redis, including the name, environment, storage options, replication settings, store password to secret manager and custom YAML values. | `any` | \u003cpre\u003e{\u003cbr\u003e  \"app_version\": \"7.2.5-debian-12-r2\",\u003cbr\u003e  \"architecture\": \"replication\",\u003cbr\u003e  \"environment\": \"\",\u003cbr\u003e  \"master_volume_size\": \"\",\u003cbr\u003e  \"name\": \"\",\u003cbr\u003e  \"slave_replica_count\": 1,\u003cbr\u003e  \"slave_volume_size\": \"\",\u003cbr\u003e  \"storage_class_name\": \"\",\u003cbr\u003e  \"store_password_to_secret_manager\": true,\u003cbr\u003e  \"values_yaml\": \"\"\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_redis_password\"\u003e\u003c/a\u003e [redis\\_password](#input\\_redis\\_password) | n/a | `string` | `\"\"` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_redis_credential\"\u003e\u003c/a\u003e [redis\\_credential](#output\\_redis\\_credential) | Redis credentials used for accessing the database. |\n| \u003ca name=\"output_redis_endpoints\"\u003e\u003c/a\u003e [redis\\_endpoints](#output\\_redis\\_endpoints) | Redis endpoints in the Kubernetes cluster. |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n\n## Contribution \u0026 Issue Reporting\n\nTo report an issue with a project:\n\n  1. Check the repository's [issue tracker](https://github.com/squareops/terraform-kubernetes-redis/issues) on GitHub\n  2. Search to see if the issue has already been reported\n  3. If you can't find an answer to your question in the documentation or issue tracker, you can ask a question by creating a new issue. Be sure to provide enough context and details so others can understand your problem.\n\n## License\n\nApache License, Version 2.0, January 2004 (http://www.apache.org/licenses/).\n\n## Support Us\n\nTo support a GitHub project by liking it, you can follow these steps:\n\n  1. Visit the repository: Navigate to the [GitHub repository](https://github.com/squareops/terraform-kubernetes-redis).\n\n  2. Click the \"Star\" button: On the repository page, you'll see a \"Star\" button in the upper right corner. Clicking on it will star the repository, indicating your support for the project.\n\n  3. Optionally, you can also leave a comment on the repository or open an issue to give feedback or suggest changes.\n\nStarring a repository on GitHub is a simple way to show your support and appreciation for the project. It also helps to increase the visibility of the project and make it more discoverable to others.\n\n## Who we are\n\nWe believe that the key to success in the digital age is the ability to deliver value quickly and reliably. That’s why we offer a comprehensive range of DevOps \u0026 Cloud services designed to help your organization optimize its systems \u0026 Processes for speed and agility.\n\n  1. We are an AWS Advanced consulting partner which reflects our deep expertise in AWS Cloud and helping 100+ clients over the last 5 years.\n  2. Expertise in Kubernetes and overall container solution helps companies expedite their journey by 10X.\n  3. Infrastructure Automation is a key component to the success of our Clients and our Expertise helps deliver the same in the shortest time.\n  4. DevSecOps as a service to implement security within the overall DevOps process and helping companies deploy securely and at speed.\n  5. Platform engineering which supports scalable,Cost efficient infrastructure that supports rapid development, testing, and deployment.\n  6. 24*7 SRE service to help you Monitor the state of your infrastructure and eradicate any issue within the SLA.\n\nWe provide [support](https://squareops.com/contact-us/) on all of our projects, no matter how small or large they may be.\n\nTo find more information about our company, visit [squareops.com](https://squareops.com/), follow us on [Linkedin](https://www.linkedin.com/company/squareops-technologies-pvt-ltd/), or fill out a [job application](https://squareops.com/careers/). If you have any questions or would like assistance with your cloud strategy and implementation, please don't hesitate to [contact us](https://squareops.com/contact-us/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquareops%2Fterraform-kubernetes-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquareops%2Fterraform-kubernetes-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquareops%2Fterraform-kubernetes-redis/lists"}