title: Running a new task with terraform without a service in ecs
body: <p>I would like to run a task with ecs without a service via terraform. But when i do the following, the <strong>service</strong> is required to set in terraform. How is it possible to set a task without a services?</p>
  <pre><code>resource &quot;aws_ecs_task_set&quot; &quot;example&quot; {
    cluster         = aws_ecs_cluster.foo.id
    task_definition = aws_ecs_task_definition.fromecr.arn
  
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/M9rCk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M9rCk.png" alt="enter image description here" /></a></p>