Skip to content

Commit

Permalink
Fix configuration_store_id case issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shanoor committed Jul 8, 2024
1 parent 3834209 commit 61f1108
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion modules/databases/app_config/settings/app_config_setting.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
locals {
app_config_id = join("/", concat(
[""],
slice(split("/", var.app_config_id), 1, 4),
[lower(split("/", var.app_config_id)[4])],
slice(split("/", var.app_config_id), 5, 8),
[lower(split("/", var.app_config_id)[8])]
))
}

resource "azurerm_app_configuration_key" "config" {
for_each = var.config_settings

configuration_store_id = var.app_config_id
configuration_store_id = local.app_config_id
key = each.value.key
label = try(each.value.label, null)
# if value is a keyvault reference, set the correct type, set value to null and set vault_key_reference
Expand Down

0 comments on commit 61f1108

Please sign in to comment.