output "url" {
  description = "URL of the environment"
  value       = "https://${var.environment}-${var.service_name}.theorchard.io"
}

output "fargate_security_group_id" {
  description = "Security group of the Fargate task"
  value       = module.ows_coda_fargate_environment.fargate_security_group_id
}

output "fargate_task_iam_role_name" {
  description = "IAM role name of the Fargate task (for debugging permission issues)"
  value       = module.ows_coda_fargate_environment.fargate_task_iam_role_name
}

output "rds_cluster_endpoint" {
  description = "RDS cluster endpoint"
  value       = module.ows_coda_rds.rds_cluster_endpoint
}

output "redis_primary_endpoint_address" {
  description = "Redis primary endpoint"
  value       = module.ows_coda_chatbot_cache.redis_primary_endpoint_address
}

output "s3_bucket_name" {
  description = "S3 uploads bucket name"
  value       = module.s3_ows_coda_uploads.s3_bucket_name_output
}
