output "ecr_repository_url" {
  description = "Push target for the quber image."
  value       = aws_ecr_repository.quber.repository_url
}

output "ecs_cluster" {
  value = aws_ecs_cluster.quber.name
}

output "task_definition_family" {
  value = aws_ecs_task_definition.table.family
}

output "github_actions_role_arn" {
  description = "Set as the AWS_ACCOUNT_ID-derived role in deploy.yml / repo secret."
  value       = aws_iam_role.github_actions.arn
}

output "output_bucket" {
  value = aws_s3_bucket.output.bucket
}

output "trigger_lambda" {
  value = aws_lambda_function.trigger.function_name
}

output "playground_db_endpoint" {
  description = "Host of the playground RDS instance (POSTGRES_HOST for the task and for the local playground run against RDS)."
  value       = aws_db_instance.playground.address
}

output "playground_url" {
  value = "https://${var.playground_hostname}"
}

output "playground_ecr_repository_url" {
  description = "Push target for the playground image."
  value       = aws_ecr_repository.playground.repository_url
}

output "playground_service" {
  value = aws_ecs_service.playground.name
}
