output "google_release_bucket_name" {
  description = "GCS bucket used for release artifacts."
  value       = try(google_storage_bucket.release_storage["releases"].name, var.google_release_bucket_name)
}

output "google_package_bucket_name" {
  description = "GCS bucket used for signed package repositories."
  value       = try(google_storage_bucket.release_storage["packages"].name, var.google_package_bucket_name)
}

output "google_nix_cache_bucket_name" {
  description = "GCS bucket used for Nix cache backups."
  value       = try(google_storage_bucket.release_storage["nix-cache"].name, var.google_nix_cache_bucket_name)
}

output "google_release_bucket_uri" {
  description = "GCS URI for release artifacts."
  value       = "gs://${try(google_storage_bucket.release_storage["releases"].name, var.google_release_bucket_name)}"
}

output "google_package_bucket_uri" {
  description = "GCS URI for signed package repositories."
  value       = "gs://${try(google_storage_bucket.release_storage["packages"].name, var.google_package_bucket_name)}"
}

output "google_nix_cache_bucket_uri" {
  description = "GCS URI for Nix cache backups."
  value       = "gs://${try(google_storage_bucket.release_storage["nix-cache"].name, var.google_nix_cache_bucket_name)}"
}
