output "tg" {
  description = "Target group which ECS service uses for load balancing"
  value       = aws_lb_target_group.main
}

output "ecs_service" {
  description = "ECS Service object"
  value       = aws_ecs_service.main
}

output "ecs_task_definition" {
  description = "ECS task definition object"
  value       = module.task_definition_main.ecs_task_definition
}

output "cloudwatch_log_group" {
  description = "Log group in cloudwatch"
  value       = module.task_definition_main.cloudwatch_log_group
}

output "alb_dns_name" {
  description = "DNS hostanme for ALB Listner aka URL"
  value       = var.url
}

output "route53_record" {
  description = "Route53 record object"
  value       = aws_route53_record.www
}

output "https_rule" {
  description = "Arn of main rule on https listener of load balancer"
  value       = module.alb_rules.https_rule_arn
}

output "http_rule" {
  description = "Arn of rule that redirects http to https"
  value       = module.alb_rules.http_rule_arn
}

output "name" {
  description = "ECService name"
  value       = local.name
}
