{"id":30349656,"url":"https://github.com/senora-dev/terraform-aws-elasticache","last_synced_at":"2026-02-17T19:01:50.110Z","repository":{"id":309369295,"uuid":"1036025038","full_name":"Senora-dev/terraform-aws-elasticache","owner":"Senora-dev","description":"This Terraform module provisions an AWS ElastiCache for Redis deployment, including subnet group, parameter group, and optional security group associations, suitable for production workloads.","archived":false,"fork":false,"pushed_at":"2025-08-11T12:59:31.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-03T14:53:54.857Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Senora-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-08-11T12:56:13.000Z","updated_at":"2025-08-11T12:57:01.000Z","dependencies_parsed_at":"2025-08-11T14:37:13.412Z","dependency_job_id":"62179f35-a6b0-45dd-bb6f-c394055e7043","html_url":"https://github.com/Senora-dev/terraform-aws-elasticache","commit_stats":null,"previous_names":["senora-dev/terraform-aws-elasticache"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Senora-dev/terraform-aws-elasticache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-elasticache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-elasticache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-elasticache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-elasticache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Senora-dev","download_url":"https://codeload.github.com/Senora-dev/terraform-aws-elasticache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-elasticache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29554384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T18:16:07.221Z","status":"ssl_error","status_checked_at":"2026-02-17T18:16:04.782Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2025-08-18T20:07:36.922Z","updated_at":"2026-02-17T19:01:50.094Z","avatar_url":"https://github.com/Senora-dev.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS ElastiCache Terraform Module\n\nThis Terraform module provisions an AWS ElastiCache for Redis deployment, including subnet group, parameter group, and optional security group associations, suitable for production workloads.\n\n## Features\n\n- ElastiCache Redis replication group (cluster mode optional)\n- Subnet group for private subnets\n- Parameter group customization\n- Encryption at rest and in transit\n- Auth token support (optional)\n- Automatic failover with Multi-AZ\n- Maintenance window configuration\n- CloudWatch metrics and tagging\n\n## Usage\n\n```hcl\nmodule \"elasticache\" {\n  source = \"Senora-dev/elasticache/aws\"\n\n  environment           = \"dev\"\n  engine                = \"redis\"\n  engine_version        = \"7.1\"\n  node_type             = \"cache.t4g.small\"\n\n  # High availability\n  multi_az_enabled      = true\n  automatic_failover    = true\n\n  # Sizing\n  replicas_per_node_group = 1\n  num_node_groups         = 1           # set \u003e1 to enable cluster mode\n  cluster_mode_enabled     = false      # true when using sharding (num_node_groups \u003e 1)\n\n  # Networking\n  subnet_ids           = [\"subnet-abc\", \"subnet-def\"]\n  security_group_ids   = [\"sg-1234567890abcdef0\"]\n\n  # Security\n  at_rest_encryption_enabled  = true\n  transit_encryption_enabled  = true\n  auth_token_enabled          = true\n  auth_token_ssm_parameter_arn = \"arn:aws:ssm:us-east-1:123456789012:parameter/elasticache/auth-token\"\n\n  # Maintenance\n  maintenance_window     = \"sun:03:00-sun:04:00\"\n  snapshot_window        = \"05:00-06:00\"\n  snapshot_retention_days = 7\n\n  tags = {\n    Project     = \"ExampleProject\"\n    Environment = \"dev\"\n  }\n}\n```\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| terraform | \u003e= 1.0 |\n| aws | \u003e= 4.0 |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| environment | Environment name (e.g., dev, staging, prod) | `string` | n/a | yes |\n| engine | Cache engine (redis) | `string` | `\"redis\"` | no |\n| engine_version | Redis engine version | `string` | `\"7.1\"` | no |\n| node_type | Instance type for cache nodes | `string` | n/a | yes |\n| multi_az_enabled | Enable Multi-AZ | `bool` | `true` | no |\n| automatic_failover | Enable automatic failover | `bool` | `true` | no |\n| replicas_per_node_group | Number of replicas per node group | `number` | `1` | no |\n| num_node_groups | Number of node groups (shards) | `number` | `1` | no |\n| cluster_mode_enabled | Enable cluster mode (sharding) | `bool` | `false` | no |\n| subnet_ids | Subnet IDs for the subnet group | `list(string)` | n/a | yes |\n| security_group_ids | Security group IDs to attach to the cluster ENIs | `list(string)` | `[]` | no |\n| at_rest_encryption_enabled | Enable encryption at rest | `bool` | `true` | no |\n| transit_encryption_enabled | Enable in-transit encryption | `bool` | `true` | no |\n| auth_token_enabled | Enable Redis AUTH token | `bool` | `false` | no |\n| auth_token_ssm_parameter_arn | SSM Parameter ARN containing the auth token (if enabled) | `string` | `null` | no |\n| maintenance_window | Weekly maintenance window (UTC) | `string` | `\"sun:03:00-sun:04:00\"` | no |\n| snapshot_window | Daily snapshot window (UTC) | `string` | `\"05:00-06:00\"` | no |\n| snapshot_retention_days | Number of days to retain snapshots | `number` | `7` | no |\n| parameter_group_family | Parameter group family (e.g., redis7) | `string` | `\"redis7\"` | no |\n| parameters | Custom parameter overrides | `map(string)` | `{}` | no |\n| tags | Tags to apply to all resources | `map(string)` | `{}` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| replication_group_id | ID of the ElastiCache replication group |\n| primary_endpoint_address | Primary endpoint address |\n| reader_endpoint_address | Reader endpoint address |\n| port | Redis port |\n| subnet_group_name | Name of the subnet group |\n| parameter_group_name | Name of the parameter group |\n\n## Notes\n\n- Set `cluster_mode_enabled = true` when `num_node_groups \u003e 1` to enable sharding\n- When `transit_encryption_enabled = true`, Redis AUTH is required by AWS; set `auth_token_enabled = true`\n- Store the auth token in AWS SSM Parameter Store and reference via `auth_token_ssm_parameter_arn`\n- Ensure subnets are private with appropriate NAT/route configuration\n- Security groups should allow inbound on the Redis port (default 6379) from allowed sources only\n\n## License\n\nMIT Licensed. See LICENSE for full details.\n\n## Maintainers\n\nThis module is maintained by [Senora.dev](https://senora.dev). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenora-dev%2Fterraform-aws-elasticache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsenora-dev%2Fterraform-aws-elasticache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenora-dev%2Fterraform-aws-elasticache/lists"}