Skip to content

Commit a3aa5fc

Browse files
authored
Merge pull request #20 from DNXLabs/fix/adjust-name
Update elasticache_serverless.tf
2 parents a3cefe1 + 324f3cb commit a3aa5fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticache_serverless.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resource "aws_elasticache_serverless_cache" "this" {
22
count = var.node_type == "serverless" ? 1 : 0
33
engine = var.engine
4-
name = var.name
4+
name = format("%.20s", "${var.name}-${var.env}")
55
description = "Terraform-managed ElastiCache replication group for ${var.name}-${var.env}-${var.vpc_id}"
66

77
dynamic "cache_usage_limits" {
@@ -26,4 +26,4 @@ resource "aws_elasticache_serverless_cache" "this" {
2626
security_group_ids = [aws_security_group.default.id]
2727
subnet_ids = data.aws_subnets.selected.ids
2828
tags = merge(tomap({ "Name" = format("tf-elasticache-%s-%s", var.name, var.vpc_id) }), var.tags)
29-
}
29+
}

0 commit comments

Comments
 (0)