An opinionated Terraform module with sensible defaults to create a single region AWS Redis ElastiCache cluster inside a previously created network
- ElastiCache Redis cluster
- Subnet Group for the cluster
- Security Group for the cluster
- SSM Parameter with the cluster configuration url
aws
cluster_name (string)
: Name for the Redis clustercluster_description (string)
: Description for the Redis clusternode_type (string)
: Compute and memory size for each nodepassword (string)
: Password used for authentication between the cluster and clientsport (number)
: Port used for communication between clients and the clusternumber_of_shards (number)
: Number of write nodes (shards) in the clusterreplicas_per_shard (number)
: Number of read replicas per shardsubnet_group_name (string)
: Name for the subnet groupsubnet_group_description (string)
: Description for the subnet groupsubnet_ids (list(string))
: List of the subnet ids used to create the subnet groupvpc_id (string)
: ID of the VPC where the cluster will be placed
enable_transit_encryption (bool)
: Enables communication with the cluster through SSL. Defaults totrue
maintenance_window (string)
: Weekly time range when maintenance happens. Defaults tosun:05:00-sun:07:00
snapshot_window (string)
: Daily time range when snapshots are taken. Defaults to02:00-04:00
snapshot_retention_window (string)
: Number of days for which ElastiCache will retain snapshots. Defaults to7
Examples of how to use the module can be found in the examples
directory
Found a bug or an error? Post it in the issue tracker.
Want to add an awesome new feature? Fork this repository, add your feature on a new branch, then send a pull request.
The MIT License (MIT) Copyright (c) 2020 Bruno Chavez