elasticache-redis

cloudposse/elasticache-redis/aws

Terraform Module HCL AWS

Terraform module to provision an ElastiCache Redis Cluster

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

Terraform module to provision an ElastiCache Redis Cluster or Serverless instance. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage _Disruptive changes introduced at version 0.41.0. If upgrading from an earlier version, see migration notes for details._ Note that this uses secure defaults. One of the ways this module can trip users up is with transit_encryption_enabled which is true by default. With this enabled, one does not simply redis-cli in without setting up an stunnel. Amazon provides good documentation on how to c

Inputs (50)
NameTypeDescriptionDefault
vpc_idstringVPC ID required
allowed_security_groupslist(string)DEPRECATED: Use `allowed_security_group_ids` instead. []
availability_zoneslist(string)Availability zone IDs[]
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
preserve_security_group_idboolWhen `false` and `create_before_destroy` is `true`, changes to security group rufalse
parameterlist(object({ name = striA list of Redis parameters to apply. Note that parameters may differ from one Re[]
ok_actionslist(string)The list of actions to execute when this alarm transitions into an OK state from[]
auto_minor_version_upgradeboolSpecifies whether minor version engine upgrades will be applied automatically tonull
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
familystringThe family of the ElastiCache parameter group"redis7"
engine_versionstringVersion number of the cache engine"7.1"
parameter_group_namestringOverride the default parameter group namenull
serverless_user_group_idstringUser Group ID to associate with the replication groupnull
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` null
security_group_delete_timeoutstringHow long to retry on `DependencyViolation` errors during security group deletion"15m"
additional_security_group_ruleslist(any)A list of Security Group rule objects to add to the created security group, in a[]
instance_typestringElastic cache instance type"cache.t2.micro"
notification_topic_arnstringNotification topic arn""
alarm_actionslist(string)Alarm action list[]
user_group_idslist(string)User Group ID to associate with the replication groupnull
… and 10 more inputs
Outputs (13)
engine_version_actual — The running version of the cache engine
cluster_enabled — Indicates if cluster mode is enabled
serverless_enabled — Indicates if serverless mode is enabled
transit_encryption_mode — The transit encryption mode of the replication group
id — Redis cluster ID
security_group_id — The ID of the created security group
security_group_name — The name of the created security group
port — Redis port
reader_endpoint_address — The address of the endpoint for the reader node in the replication group, if the cluster mode is dis
member_clusters — Redis cluster members
host — Redis hostname
endpoint — Redis primary, configuration or serverless endpoint , whichever is appropriate for the given configu
arn — Elasticache Replication Group ARN
Resources (5)
aws_cloudwatch_metric_alarmaws_elasticache_parameter_groupaws_elasticache_replication_groupaws_elasticache_serverless_cacheaws_elasticache_subnet_group
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud AWS
★ Stars147
Forks255
Total downloads10.2M
Inputs50
Outputs13
Resources5
Examples2
LicenseApache-2.0
Namespacecloudposse
Updated