variable "container_image" {
  description = "Container image to deploy"
  type        = string
}

variable "env" {
  description = "Environment name (e.g., dev, stg, prod)"
  type        = string
}

variable "vpc_id" {
  description = "VPC ID where the resources will be deployed"
  type        = string
}

variable "container_port" {
  description = "Internal port used by the application"
  type        = number
  default     = 3000
}

variable "health_check_path" {
  description = "HTTP path for ECS and ALB health checks"
  type        = string
  default     = "/hu-agent/health"
}

variable "service" {
  description = "Service configuration"
  type = object({
    target_cluster_arn = string
    resources = object({
      cpu                   = number
      memory                = number
      ephemeral_storage_gib = number
      fargate_spot_weight   = number
      fargate_weight        = number
    })
    target_group_arn = string
  })
}

variable "env_vars" {
  description = "Environment variables and secrets for the application. Variables starting with 'secret::' will be treated as secrets"
  type        = map(string)
}
