output "account_id" {
  value       = data.aws_caller_identity.current.account_id
  description = "AWS account Terraform is configured to use."
}

output "enabled_components" {
  value = {
    budget                 = var.enable_budget
    external_backup_bucket = var.enable_external_backup_bucket
  }
  description = "Aether components currently switched on."
}

output "paid_component_requests" {
  value       = local.paid_component_requests
  description = "Aether components that require the paid resource opt-in."
}

output "external_backup_bucket_name" {
  value       = try(aws_s3_bucket.external_backup[0].bucket, null)
  description = "S3 bucket name when the external backup test bucket is enabled."
}

output "flux_root" {
  value       = abspath("${path.module}/../../clusters/aether/flux-system")
  description = "Aether Flux render root."
}
