# Parallel Deployment Configuration
# This module supports parallel execution across regions

# Output for parallel deployment tracking
output "deployment_status" {
  value = {
    region          = var.region_name
    region_code     = var.region_code
    aks_cluster     = var.deploy_aks_clusters ? azurerm_kubernetes_cluster.main[0].name : null
    system_nodes    = var.deploy_aks_clusters ? 2 : 0 # Updated for 36-region blueprint (2 per region)
    validator_nodes = var.deploy_aks_clusters && var.validator_count > 0 ? var.validator_count : 0
    sentry_nodes    = var.deploy_aks_clusters && var.sentry_count > 0 ? var.sentry_count : 0
    total_vcpus     = var.deploy_aks_clusters ? (2 * 2) + (var.validator_count * 2) + (var.sentry_count * 2) : 0 # Updated for 36-region blueprint
    status          = var.deploy_aks_clusters ? "deployed" : "pending"
  }
}
