Terraform support for rolling deployments on ECS with draining

We have a bunch of C# game services running in ECS (AWS). When we make make updates to these services, my preferred deployment strategy looks like this:

  • we roll out the new version of the service
  • all new players will hit the new service version
  • we let existing players finish their game on the old servers, which takes some minutes (draining)
  • when all players have left the old service version, we want to it shut down

How does Terraform support this scenario?
Cheers,
Reik