Support for daemon
services (1 task per ECS instance) was just added to ECS as a schedulingStrategy
attribute when creating a service (api docs). Valid values are:
REPLICA
: this is the strategy that all ECS tasks used to beDAEMON
: one task per ECS instanceIt would be great to be able to create services of this type with terraform.
Note: I'm not sure if the scheduling_strategy
values should be lowercase like most terraform configs or UPPERCASE to match the AWS API values.
resource "aws_ecs_service" "datadog" {
name = "datadog"
cluster = "${aws_ecs_cluster.foo.id}"
task_definition = "${aws_ecs_task_definition.datadog.arn}"
iam_role = "${aws_iam_role.foo.arn}"
scheduling_strategy = "daemon"
}
Any update on when this will be merged?
We should be able to get this released tomorrow, more shortly.
Support for the new scheduling_strategy
argument and DAEMON
ECS services has been merged in and will release with version 1.25.0 of the AWS provider tomorrow.
This has been released in version 1.25.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
Thanks for this! Already using it in prod.
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
Support for the new
scheduling_strategy
argument andDAEMON
ECS services has been merged in and will release with version 1.25.0 of the AWS provider tomorrow.