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
}
CodePudding user response:
You have to use local-exec to run AWS CLI to call run-task.