From c34ab7860b76a87073c2a1aee3a6f90daf95bfef Mon Sep 17 00:00:00 2001 From: Abhi Yerra Date: Thu, 22 Aug 2024 12:25:47 -0700 Subject: [PATCH] Add count --- redis.tf | 2 +- variables.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/redis.tf b/redis.tf index 5327216..ccd64f1 100644 --- a/redis.tf +++ b/redis.tf @@ -16,7 +16,7 @@ resource "aws_elasticache_cluster" "default" { engine_version = var.redis_engine_version port = 6379 - subnet_group_name = aws_elasticache_subnet_group.default.name + subnet_group_name = aws_elasticache_subnet_group.default[0].name security_group_ids = [aws_security_group.node.id] tags = { diff --git a/variables.tf b/variables.tf index f5d5037..d2d9117 100644 --- a/variables.tf +++ b/variables.tf @@ -453,4 +453,4 @@ variable "s3_csi_bucket_names" { description = "The name of the S3 bucket for the CSI driver" type = list(string) default = [""] -} \ No newline at end of file +}