We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f41139 commit 368c938Copy full SHA for 368c938
main.tf
@@ -82,9 +82,11 @@ module "aws_security_group" {
82
# ElastiCache Resources
83
#
84
resource "aws_elasticache_subnet_group" "default" {
85
- count = local.enabled ? 1 : 0
86
- name = module.this.id
87
- subnet_ids = var.subnets
+ count = local.enabled && var.elasticache_subnet_group_name == "" && length(var.subnets) > 0 ? 1 : 0
+ name = module.this.id
+ description = "Elasticache subnet group for ${module.this.id}"
88
+ subnet_ids = var.subnets
89
+ tags = module.this.tags
90
}
91
92
resource "aws_elasticache_parameter_group" "default" {
0 commit comments