# ECS Service
resource "aws_ecs_service" "this" {
  name             = var.name
  cluster          = var.ecs_cluster
  task_definition  = aws_ecs_task_definition.this.arn
  launch_type      = "FARGATE"
  platform_version = var.platform_version
  desired_count    = 1

  enable_ecs_managed_tags = true
  propagate_tags          = "TASK_DEFINITION"
  tags                    = var.tags

  network_configuration {
    subnets          = var.subnet_ids
    security_groups  = var.sg_ids
    assign_public_ip = false
  }




}

