Skip to content

Commit

Permalink
include user_group_ids attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
brunodasilvalenga committed Feb 6, 2024
1 parent e66b1f8 commit db3dc23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,10 @@ variable "subnet_ids" {

variable "vpc_id" {
type = string
}

variable "user_group_ids" {
description = "(Optional) User Group ID to associate with the replication group. Only a maximum of one (1) user group ID is valid. NOTE: This argument is a set because the AWS specification allows for multiple IDs. However, in practice, AWS only allows a maximum size of one."
type = set(string)
default = null
}
1 change: 1 addition & 0 deletions redis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resource "aws_elasticache_replication_group" "redis" {
snapshot_window = var.snapshot_window
subnet_group_name = try(aws_elasticache_subnet_group.redis[0].name, var.subnet_group_name)
parameter_group_name = var.parameter_group_name
user_group_ids = var.user_group_ids

tags = {
"Name" = var.name
Expand Down

0 comments on commit db3dc23

Please sign in to comment.