Skip to content

Commit 0a9da83

Browse files
committed
Compose the subnet group name if called requests subnet group creation
1 parent f3f4519 commit 0a9da83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ resource "aws_elasticache_parameter_group" "this" {
3333
resource "aws_elasticache_subnet_group" "this" {
3434
count = var.enabled && var.create_elasticache_subnet_group ? 1 : 0
3535

36-
name = var.subnet_group_name
36+
name = format("%s_subnet_group", var.name)
3737
subnet_ids = var.subnets
3838
}
3939

0 commit comments

Comments
 (0)