Running a new task with terraform without a service in ecs

Viewed 145

I would like to run a task with ecs without a service via terraform. But when i do the following, the service is required to set in terraform. How is it possible to set a task without a services?

resource "aws_ecs_task_set" "example" {
  cluster         = aws_ecs_cluster.foo.id
  task_definition = aws_ecs_task_definition.fromecr.arn

}

enter image description here

1 Answers
Related