redis-cluster

dod-iac/redis-cluster/aws

Terraform Module HCL AWS

A Redis cluster on Elasticache

Install
module "redis-cluster" {
source = "dod-iac/redis-cluster/aws"
version = "1.2.1"
}
plain text: /constructs/tfmod-dod-iac-redis-cluster-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (13)
NameTypeDescriptionDefault
replication_group_idstringThe replication group identifier. This parameter is stored as a lowercase string required
subnet_group_namestringThe name of the cache subnet group to be used for the replication group. required
vpc_idstringThe ID of the VPC that the security group will be associated with. required
security_group_namestringThe name of the EC2 security group used by the Redis cluster. Defaults to redis""
tagsmap(string)Map of tags to set on the EC2 security group and the ElastiCache replication gro{}
descriptionstringThe description of the replication group used by the Redis cluster."A Redis cluster on Amazon ElastiCache."
ingress_cidr_blockslist(string)A list of CIDR blocks to allow access to the Redis cluster. Use ["0.0.0.0/0"] t[]
ingress_security_groupslist(string)A list of EC2 security groups to allow access to the Redis cluster.[]
number_cache_clustersnumberThe number of cache clusters (primary and replicas) this replication group will 2
node_typestringThe instance class to be used."cache.m5.large"
apply_immediatelyboolSpecifies whether any modifications are applied immediately, or during the next true
parameter_group_namestringName of the parameter group to associate with the replication group."default.redis7"
portnumberThe port number on which each of the cache nodes will accept connections.6379
Outputs (4)
replication_group_arn
replication_group_id
primary_endpoint_address
reader_endpoint_address
Resources (3)
aws_elasticache_replication_groupaws_security_groupaws_security_group_rule
Details
FrameworkTerraform Module
LanguageHCL
Version1.2.1
Cloud AWS
★ Stars0
Forks2
Total downloads5.4k
Inputs13
Outputs4
Resources3
Examples1
LicenseNOASSERTION
Namespacedod-iac
Updated