Azure / terraform-azurerm-naming

MIT License
223 stars 112 forks source link

Azure Cosmos DB account name has incorrect scope #126

Open EpicWink opened 5 months ago

EpicWink commented 5 months ago

Azure Cosmos DB account name's scope is output as "resourceGroup", but the documentation says that these names are globally scoped.

Reproduction (click to expand) ```terraform # main.tf module "azure_name_config" { source = "Azure/naming/azurerm" version = "~> 0.4.0" } output "cosmos_scope" { value = module.azure_name_config.cosmosdb_account.scope } ``` ```shell terraform init terraform apply terraform output ``` ### Actual ```hcl cosmos_scope = "resourceGroup" ``` ### Expected ```hcl cosmos_scope = "global" ```

Environment

EpicWink commented 1 month ago

For that matter, other outputs are wrong as well:

property currently should be
max_length 63 44
min_length 1 3
regex "^[a-z0-9][a-z0-9-_.]+[a-z0-9]$" "^[a-z0-9][a-z0-9-]{2,}$"
scope "resourceGroup" "global"