Coder Social home page Coder Social logo

Comments (3)

psyhomb avatar psyhomb commented on May 9, 2024 1

@fujiwara thanks for the quick answer I will try it out this and let you know if it works!

from ecspresso.

psyhomb avatar psyhomb commented on May 9, 2024

Ok according to AWS Go SDK documentation it's not related to LB draining, it's just going to force a new deployment even if there is no service definition changes.

https://docs.aws.amazon.com/sdk-for-go/api/service/ecs/#ECS.UpdateServiceWithContext

// Whether to force a new deployment of the service. Deployments are not forced
// by default. You can use this option to trigger a new deployment with no service
// definition changes. For example, you can update a service's tasks to use
// a newer Docker image with the same image/tag combination (my_image:latest)
// or to roll Fargate tasks onto a newer platform version.

So my question is, is there is a way to force stop of ECS tasks (running:0) w/ this tool, w/o need to wait for LB draining to be completed successfully. This is something I would like to implement for dev and test environments.

Thanks

from ecspresso.

fujiwara avatar fujiwara commented on May 9, 2024

--force-new-deployment only works with --skip-task-definition actually.
If you want to replace all tasks in service without update task definition, use --skip-task-definition and --force-new-deployment both.
When a task definition in service is unchanged, ECS does not replace tasks in the service by default.

So my question is, is there is a way to force stop of ECS tasks (running:0) w/ this tool, w/o need to wait for LB draining to be completed successfully. This is something I would like to implement for dev and test environments.

--tasks option is for that use case. e.g.ecspresso deploy --skip-task-definiton --tasks 0

from ecspresso.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.