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.
2 parents 2340e56 + b48eec4 commit d545fd7Copy full SHA for d545fd7
main.tf
@@ -7,7 +7,7 @@ resource "random_id" "salt" {
7
}
8
9
resource "aws_elasticache_replication_group" "redis" {
10
- replication_group_id = format("%.32s", "${var.name}-${var.env}")
+ replication_group_id = replace(format("%.20s", "${var.name}-${var.env}"), "/-$/", "")
11
replication_group_description = "Terraform-managed ElastiCache replication group for ${var.name}-${var.env}"
12
number_cache_clusters = var.redis_clusters
13
node_type = var.redis_node_type
0 commit comments