-
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
ECS update service process #4378
Comments
Hi, There has been some bug fixes recently around this, e.g. #3924 |
Ah excellent, upgrading fixed this. Works great now! Sorry about that - should have made sure I was on latest first. |
@radeksimko Hey, I am getting a issue while updating the ecs service using Terraform. |
I am currently seeing this issue on v0.9.11 |
@jonnyshaw89 I have the same problem. "Rolling deployment" via service makes it almost impossible. A workaround is to include the version in the service name so it gets destroyed and recreated. (which causes downtime) |
I've also same problem with v 0.10.5. Will there be any improvement about that? I currently write revision number into task definition json file, and update the number every time before deploying new code. |
I was able to solve the inactive task definition issue with the example in the ECS task definition data source. You set up the ECS service resource to use the the max revision of either what your Terraform resource has created, or what is in the AWS console which the data source retrieves. The one downside to this is if someone changes the task definition, Terraform will not realign that to what's defined in code. |
@dmikalova I might be doing wrong, but it seems like the example that you suggested only works with existing services/task definitions. You can't use that particular syntax with a new services, since no existing task definition exist (yet). |
Just throwing this out there since it was my issue.. Make sure you don't have
|
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 have the following service and task defined:
I now want to update my service to serve a new version of my container, so I update the tag on my image to
2
. I expect that this would update the task and the service at the same time, but in reality a new revision is created for the task but the service is not updated to point at this new revision. In order to get the service to point to the new revision I have to actually change the name of the task each time I update it so that it is treated as a delete and recreate of the task. This will then create a new revision of the task, and the service will point to the new version, kicking off the ECS rolling deploy process.So in the above example in order to deploy a new version I would do something like this:
I'm not sure if this is a bug or intended behaviour, but either way it doesn't seem like a good way to handle new task deployments.
The text was updated successfully, but these errors were encountered: