-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for ECS service registration w/ multiple target groups #9285
Comments
Looks like the validation is currently done in the provider, so this line would need to be updated: |
Unfortunately, this cannot be released now as the feature is in developer preview. |
Support for this has been tested and merged. It will release with version 2.22.0 of the Terraform AWS Provider, later this week. Thanks to @sunilkumarmohanty for the implementation. 👍 |
This has been released in version 2.22.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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! |
Community Note
Description
The AWS team has just announced support for ECS services which can register w/ multiple target groups is in developer preview:
https://github.com/aws/containers-roadmap/tree/master/preview-programs/ecs-multipletg-service
As such, it'd be good to have support for this in Terraform. However, currently only a single
load_balancer
can be attached to anaws_ecs_service
, see: https://www.terraform.io/docs/providers/aws/r/ecs_service.html#load_balancer-1I'm opening this issue now before digging into the code, but based on the discussions in #4089 this may just work ™️ if the validation logic is based solely on AWS responses. I'll update this issue w/ additional comments after I've looked into the provider code (which I'm not terribly familiar with, so that may take some time).
At a minimum, once this feature leaves developer preview the
aws_ecs_service
documentation will need to be updated.New or Affected Resource(s)
Potential Terraform Configuration
The easiest solution from a backwards-compat/developer experience perspective would be to support multiple
load_balancer
sections in theaws_ecs_service
HCL. For example to expand on the example provided from the documentation:References
The text was updated successfully, but these errors were encountered: