Skip to content

Commit

Permalink
solve "valut name is too large" by trimming chars from the start
Browse files Browse the repository at this point in the history
  • Loading branch information
eytannnaim committed Aug 16, 2023
1 parent 8bfdfef commit 0de55f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/azurerm/sonar-base-instance/secret.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ locals {
data "azurerm_client_config" "current" {}

resource "azurerm_key_vault" "vault" {
name = var.name
name = trim(substr(var.name, -24, -1), "-")
location = var.resource_group.location
resource_group_name = var.resource_group.name
enabled_for_deployment = true
Expand Down

0 comments on commit 0de55f9

Please sign in to comment.