Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Cosmos DB account name has incorrect scope #126

Open
EpicWink opened this issue Jun 5, 2024 · 1 comment
Open

Azure Cosmos DB account name has incorrect scope #126

EpicWink opened this issue Jun 5, 2024 · 1 comment

Comments

@EpicWink
Copy link

EpicWink commented Jun 5, 2024

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)
# 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
}
terraform init
terraform apply
terraform output

Actual

cosmos_scope = "resourceGroup"

Expected

cosmos_scope = "global"

Environment

  • Azure/naming/azurerm module: v0.4.1
@EpicWink
Copy link
Author

EpicWink commented Sep 20, 2024

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant