A Terraform module to create an AWS ElastiCache Redis cluster
An opinionated Terraform module with sensible defaults to create a single region AWS Redis ElastiCache cluster inside a previously created network
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 placedenable_transit_encryption (bool)
: Enables communication with the cluster through SSL. Defaults to true
maintenance_window (string)
: Weekly time range when maintenance happens. Defaults to sun
00-sun
00
snapshot_window (string)
: Daily time range when snapshots are taken. Defaults to 02
00
snapshot_retention_window (string)
: Number of days for which ElastiCache will retain snapshots. Defaults to 7
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