redis-cluster
dod-iac/redis-cluster/aws
A Redis cluster on Elasticache
Usage Creates a Elasticache Redis cluster. ``hcl module "vpc" { source = "terraform-aws-modules/vpc/aws" version = "3.14.2" ... create_elasticache_subnet_group = true create_elasticache_subnet_route_table = true elasticache_subnets = ["10.0.201.0/24", "10.0.202.0/24", "10.0.203.0/24"] ... } module "redis_cluster" { source = "dod-iac/redis-cluster/aws" ingress_cidr_blocks = ["0.0.0.0/0"] replication_group_id = format("test-%s", var.test_name) subnet_group_name = module.vpc.elasticache_subnet_group_name vpc_id = module.vpc.vpc_id } ` Testing Run all terratest tests using the terratest script. If using aws-vault, you could use aws-vault exec $AWS_PROFILE -- terratest. The AWS_DEFAULT_REGION environment variable is required by the tests. Use TT_SKIP_DESTROY=1 to not destroy the infrastructure
| Name | Type | Description | Default |
|---|---|---|---|
| replication_group_id | string | The replication group identifier. This parameter is stored as a lowercase string | required |
| subnet_group_name | string | The name of the cache subnet group to be used for the replication group. | required |
| vpc_id | string | The ID of the VPC that the security group will be associated with. | required |
| security_group_name | string | The name of the EC2 security group used by the Redis cluster. Defaults to redis | "" |
| tags | map(string) | Map of tags to set on the EC2 security group and the ElastiCache replication gro | {} |
| description | string | The description of the replication group used by the Redis cluster. | "A Redis cluster on Amazon ElastiCache." |
| ingress_cidr_blocks | list(string) | A list of CIDR blocks to allow access to the Redis cluster. Use ["0.0.0.0/0"] t | [] |
| ingress_security_groups | list(string) | A list of EC2 security groups to allow access to the Redis cluster. | [] |
| number_cache_clusters | number | The number of cache clusters (primary and replicas) this replication group will | 2 |
| node_type | string | The instance class to be used. | "cache.m5.large" |
| apply_immediately | bool | Specifies whether any modifications are applied immediately, or during the next | true |
| parameter_group_name | string | Name of the parameter group to associate with the replication group. | "default.redis7" |
| port | number | The port number on which each of the cache nodes will accept connections. | 6379 |
replication_group_arnreplication_group_idprimary_endpoint_addressreader_endpoint_addressAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,