File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed
Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module "redis_label" {
77
88module "redis" {
99 source = " cloudposse/elasticache-redis/aws"
10- version = " 1.2.1 "
10+ version = " 1.9.0 "
1111
1212 # Networking
1313 availability_zones = var. availability_zones
@@ -31,9 +31,11 @@ module "redis" {
3131 at_rest_encryption_enabled = true
3232 transit_encryption_enabled = true
3333
34- # Redis settings
34+ # Redis/Valkey settings
35+ engine = var. engine
3536 engine_version = var. engine_version
3637 family = var. family
38+ port = var. port
3739 auth_token = var. password
3840
3941 context = module. redis_label . context
Original file line number Diff line number Diff line change @@ -60,19 +60,30 @@ variable "instance_type" {
6060
6161variable "family" {
6262 type = string
63- default = " redis6.x"
64- description = " Redis family"
63+ default = " redis7.x"
64+ description = " The family of the ElastiCache parameter group"
65+ }
66+
67+ variable "engine" {
68+ type = string
69+ default = " redis"
70+ description = " Name of the Redis-compatible cache engine. Valid values are: `redis` or `valkey`"
6571}
6672
6773variable "engine_version" {
6874 type = string
69- default = " 6.2"
70- description = " Redis engine version"
75+ default = " 7.1"
76+ description = " Version number of the cache engine"
77+ }
78+
79+ variable "port" {
80+ type = number
81+ default = 6379
82+ description = " Port number on which the cache nodes will accept connections"
7183}
7284
7385variable "password" {
7486 type = string
7587 description = " Auth token for password protecting redis, `transit_encryption_enabled` must be set to `true`. Password must be longer than 16 chars"
7688 default = null
77-
7889}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ terraform {
44 required_providers {
55 aws = {
66 source = " hashicorp/aws"
7- version = " >= 4.18 "
7+ version = " >= 5.73 "
88 }
99 }
1010}
You can’t perform that action at this time.
0 commit comments