-
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
The aws_ecs_service doesn't wait for a new computed aws_ecs_task_definition #2694
Comments
I'm also getting this. Could this be that terraform |
yep, noticing the same here, 0.6.3. have been manually updating the task def on the service so far, but if another apply does the job makes sense. |
I am also experiencing this. Any updates? |
I'm having the same issue here on 0.6.4. I update the |
When you update the task definition and I would suspect not. The task definition's ARN isn't changing, is it? Does someone have a valid |
@catsby no, not in this case. plan and apply yield the same result most of the time (just a task def change, without a service bump for the task version) example of an aws_ecs_task_definition (including an inline container_definitions entry):
|
👍 |
Experiencing this. Any Updates? |
Also seeing this. 👍 |
Reproduced, I think that marking all fields in After all, we're effectively creating a new resource with a new ID anyway, so it won't make much difference IMO. |
btw. I think the reason why When re-computation actually happens - during @catsby Maybe there should be a way to trigger "recomputation" of |
See #3924 which is fixing this (verified by a simple acceptance test included in the PR). |
Should that fix be in 0.6.8? I just upgraded but still experience the issue: the task definition updates but the service depending on that task definition does not update. I need to |
@jbergknoff This should be fixed in If you're still experiencing any issues, report it as a new issue please. Ideally include the terraform code used (minus any secrets), so we can reproduce it and fix it. |
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. |
I found that the aws_ecs_service doesn't wait for the new computed aws_ecs_task_definition. It just uses the old aws_ecs_task_definition at the first time I run plan and apply. When I run plan and apply again, it will pick up the new aws_ecs_task_definition.
Here is my sample config:
I also tried adding
depends_on = ["aws_ecs_task_definition.terraform_ecs_demo"]
to the service, but same result.The text was updated successfully, but these errors were encountered: