From 78ef6ce2a0ad143f35c215ceb1a765aa3f77ed7b Mon Sep 17 00:00:00 2001 From: Prashant Yadav <79893616+theprashantyadav@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:42:22 +0530 Subject: [PATCH] feat: fixed create issue (#65) Co-authored-by: anmolnagpal --- _example/memcached/versions.tf | 4 ++-- main.tf | 1 + variables.tf | 6 ++++++ versions.tf | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/_example/memcached/versions.tf b/_example/memcached/versions.tf index 473acc3..fb1ba74 100644 --- a/_example/memcached/versions.tf +++ b/_example/memcached/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 1.6.2" + required_version = ">= 1.6.5" required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.22.0" + version = ">= 5.31.0" } } } diff --git a/main.tf b/main.tf index 0a52ba8..e65ba6d 100644 --- a/main.tf +++ b/main.tf @@ -179,6 +179,7 @@ resource "aws_elasticache_replication_group" "cluster" { kms_key_id = var.kms_key_id == "" ? join("", aws_kms_key.default[*].arn) : var.kms_key_id tags = module.labels.tags num_cache_clusters = var.num_cache_clusters + user_group_ids = var.user_group_ids dynamic "log_delivery_configuration" { for_each = var.log_delivery_configuration diff --git a/variables.tf b/variables.tf index 841f5a3..6e9d871 100644 --- a/variables.tf +++ b/variables.tf @@ -72,6 +72,12 @@ variable "port" { sensitive = true } +variable "user_group_ids" { + type = list(string) + default = [""] + description = "User Group ID to associate with the replication group." +} + variable "node_type" { type = string default = "cache.t2.small" diff --git a/versions.tf b/versions.tf index 4a1aadb..0960c81 100644 --- a/versions.tf +++ b/versions.tf @@ -1,6 +1,6 @@ # Terraform version terraform { - required_version = ">= 1.6.6" + required_version = ">= 1.6.5" required_providers { aws = {