Home > Software design >  Running a new task with terraform without a service in ecs
Running a new task with terraform without a service in ecs

Time:06-05

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

CodePudding user response:

You have to use local-exec to run AWS CLI to call run-task.

  • Related