Skip to content

Commit

Permalink
fix: Remove dots from inter_parameter_group_name (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: Matheus Safraid <[email protected]>
Co-authored-by: Bryant Biggs <[email protected]>
  • Loading branch information
3 people authored Aug 3, 2024
1 parent a483023 commit 37286d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ resource "random_id" "this" {
}

locals {
inter_parameter_group_name = "${try(coalesce(var.cluster_id, var.replication_group_id), "")}-${var.parameter_group_family}-${try(random_id.this[0].hex, "")}"
inter_parameter_group_name = "${try(coalesce(var.cluster_id, var.replication_group_id), "")}-${replace(var.parameter_group_family, ".", "-")}-${try(random_id.this[0].hex, "")}"
parameter_group_name = coalesce(var.parameter_group_name, local.inter_parameter_group_name)
parameter_group_name_result = var.create && var.create_parameter_group ? aws_elasticache_parameter_group.this[0].id : var.parameter_group_name

Expand Down

0 comments on commit 37286d0

Please sign in to comment.