# Outputs for Multi-Region Landing Zone Deployment

output "deployed_regions" {
  description = "List of deployed regions"
  value       = local.regions
}

output "regional_resource_groups" {
  description = "Resource group names per region"
  value = {
    for region, module in module.regional_landing_zones :
    region => module.resource_group_name
  }
}

output "regional_key_vaults" {
  description = "Key Vault names per region"
  value = {
    for region, module in module.regional_landing_zones :
    region => module.key_vault_name
  }
}

output "regional_storage_accounts" {
  description = "Storage account names per region"
  value = {
    for region, module in module.regional_landing_zones :
    region => module.storage_account_name
  }
}

output "regional_log_analytics_workspaces" {
  description = "Log Analytics Workspace names per region"
  value = {
    for region, module in module.regional_landing_zones :
    region => module.log_analytics_workspace_name
  }
}

output "regional_hub_vnets" {
  description = "Hub VNet names per region"
  value = {
    for region, module in module.regional_landing_zones :
    region => module.hub_vnet_name
  }
}

output "regional_spoke_vnets" {
  description = "Spoke VNet names per region"
  value = {
    for region, module in module.regional_landing_zones :
    region => module.spoke_vnet_name
  }
}

output "deployment_summary" {
  description = "Summary of deployment"
  value = {
    total_regions = length(local.regions)
    regions       = local.regions
    environment   = var.environment
    management_group = var.management_group_id
  }
}

