Skip to content

Commit 42b6908

Browse files
committed
Add support for passing user_group_id to elasticache replication group
1 parent 202bad8 commit 42b6908

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: main.tf

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ resource "aws_elasticache_replication_group" "this" {
7171
num_node_groups = var.cluster_mode_enabled ? var.num_node_groups : null
7272
replicas_per_node_group = var.cluster_mode_enabled ? var.replicas_per_node_group : null
7373

74+
user_group_ids = [var.user_group_id]
75+
7476
tags = var.tags
7577
}
7678

@@ -92,7 +94,7 @@ resource "awscc_elasticache_serverless_cache" "this" {
9294
}
9395
}
9496

95-
user_group_id = var.serverless_user_group_id
97+
user_group_id = var.user_group_id
9698

9799
final_snapshot_name = "${var.name}-elasticache-serverless-final-snapshot"
98100
kms_key_id = var.kms_key_id

Diff for: variables.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ variable "snapshot_arns_to_restore" {
243243
default = []
244244
}
245245

246-
variable "serverless_user_group_id" {
246+
variable "user_group_id" {
247247
type = string
248-
description = "The ID of the user group for Serverless Cache"
248+
description = "The ID of the user group Elasticache"
249249
default = ""
250250
}

0 commit comments

Comments
 (0)