# Administrative Region (West Europe)
# Deploy admin resources only - no validators, no sentries

module "admin_region" {
  source = "./modules/region"

  # Only deploy if admin region is specified
  count = var.admin_region != "" ? 1 : 0

  region_name     = var.admin_region
  region_code     = local.regions[var.admin_region].code
  region_display  = local.regions[var.admin_region].name
  cloud_provider  = local.cloud_provider
  env_code        = local.env_code
  subscription_id = var.subscription_id
  common_tags     = local.common_tags

  # Admin region: No AKS clusters, no validators, no sentries
  deploy_aks_clusters = false
  validator_count     = 0
  sentry_count        = 0
}

# Output for admin region
output "admin_region" {
  value = var.admin_region != "" ? {
    region          = var.admin_region
    resource_groups = module.admin_region[0].resource_groups
    networks        = module.admin_region[0].networks
    key_vaults      = module.admin_region[0].key_vaults
  } : null
}
