Terraform-provider-aws: Add support for scheduling_strategy on aws_ecs_service

Created on 13 Jun 2018  ·  6Comments  ·  Source: hashicorp/terraform-provider-aws

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

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 be
  • DAEMON: one task per ECS instance

It would be great to be able to create services of this type with terraform.

New or Affected Resource(s)

  • aws_ecs_service

Potential Terraform Configuration

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"
}

References

enhancement servicecs

Most helpful comment

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.

All 6 comments

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!

Was this page helpful?
0 / 5 - 0 ratings