-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/aws: Add aws_ecs_task_definition
datasource to allow services to track the latest revision
#8509
Conversation
I am finding it impossible to use terraform with ecs without this functionality. |
I am using this now, it works great, thank you! @apparentlymart please get his merged in |
This really needs to be merged/addressed. Every other solution out there is super hacky, and requires maintaining two different docker images so terraform can safely rollback to the tag specified in the task definition when updating. This is a necessary feature for anyone using continuous deployment with ECS. Any updates from the terraform guys? |
Status? |
💯 |
@jen20 Would it be possible to get eyes on this Pull Request? |
I'm working on resolving the conflicts. |
aws_ecs_task_definition
datasource to allow services to track the latest revisionaws_ecs_task_definition
datasource to allow services to track the latest revision
bcbf91a
to
ae33d53
Compare
aws_ecs_task_definition
datasource to allow services to track the latest revisionaws_ecs_task_definition
datasource to allow services to track the latest revision
Done. |
Will this make it into the next release? |
@stack72 would you be able to review/approve this? |
Bump? |
Hi all This LGTM! Is this just a case of wanting to find details out of a latest version of a task definition? Or what other usecase does this actually solve? Right now, it just seems to set up a task def, pass that into the data_source and get itself back Thoughts? Paul |
The main use case is to be able to update a task definition as part of a CI build (outside of TF), and have Terraform correctly pull in the latest revision of the task and update its corresponding service accordingly. |
@curena do you would then feed the result of the data source lookup into the ECS service? |
Correct. |
Got it - will get this merged then :) It makes sense I would like to get an example for the documentation to show how this would work |
Thanks. There's a pretty good example in the parent issue #8449. |
ok, LGTM! The tests pass and I now understand the use-case I will follow up with a more complete example in the documentation about what this will enable
|
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Implements #8449
This PR contains the following:
aws_ecs_task_definition
New interpolation function(added in Add some basic math interpolation functions #9692)max
See #8449 for the detailed explanation of the why.