output "service_account_email" {
  value = google_service_account.dax_bigquery.email
}

output "custom_role_name" {
  value = google_project_iam_custom_role.dax_dataset_iam_reconciler[var.gcp_project_id].name
}

output "custom_role_names" {
  value = {
    for project_id, role in google_project_iam_custom_role.dax_dataset_iam_reconciler :
    project_id => role.name
  }
}

output "managed_dataset_count" {
  value = length(local.managed_datasets)
}

output "managed_dataset_locators" {
  value = local.managed_dataset_locators
}

output "service_account_json_ssm_parameter_name" {
  value = aws_ssm_parameter.dax_bigquery_service_account_json.name
}
