Skip to content

Commit

Permalink
Merge pull request #8 from SPHTech-Platform/update/add-user-group-id-…
Browse files Browse the repository at this point in the history
…elasticache-replication-group

Add support for user_group_id to elasticache replication group
  • Loading branch information
hazmei authored Dec 28, 2023
2 parents 202bad8 + 42b6908 commit ea1db15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ resource "aws_elasticache_replication_group" "this" {
num_node_groups = var.cluster_mode_enabled ? var.num_node_groups : null
replicas_per_node_group = var.cluster_mode_enabled ? var.replicas_per_node_group : null

user_group_ids = [var.user_group_id]

tags = var.tags
}

Expand All @@ -92,7 +94,7 @@ resource "awscc_elasticache_serverless_cache" "this" {
}
}

user_group_id = var.serverless_user_group_id
user_group_id = var.user_group_id

final_snapshot_name = "${var.name}-elasticache-serverless-final-snapshot"
kms_key_id = var.kms_key_id
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ variable "snapshot_arns_to_restore" {
default = []
}

variable "serverless_user_group_id" {
variable "user_group_id" {
type = string
description = "The ID of the user group for Serverless Cache"
description = "The ID of the user group Elasticache"
default = ""
}

0 comments on commit ea1db15

Please sign in to comment.