Giter Club home page Giter Club logo

Comments (1)

fujiwara avatar fujiwara commented on June 9, 2024

I cannot reproduce a reported behavior with ecspresso 1.4.0.

Would you tell me reproduced details?


My test case is here.

Now my ECS Service uses ecspresso-test:262.

$ ecspresso --config config.yaml --envfile envfile status
Service: nginx-local
Cluster: ecspresso-test
TaskDefinition: ecspresso-test:262
Deployments:
   PRIMARY ecspresso-test:262 desired:0 pending:0 running:0
Events:
2021/03/20 00:25:22 (service nginx-local) has reached a steady state.
2021/03/20 00:25:22 (service nginx-local) (deployment ecs-svc/6808218706619292078) deployment completed.

Latest task definition is ecspresso-test:264.

$ aws ecs list-task-definitions --family-prefix ecspresso-test | tail 
        "arn:aws:ecs:ap-northeast-1:************:task-definition/ecspresso-test:256",
        "arn:aws:ecs:ap-northeast-1:************:task-definition/ecspresso-test:257",
        "arn:aws:ecs:ap-northeast-1:************:task-definition/ecspresso-test:258",
        "arn:aws:ecs:ap-northeast-1:************:task-definition/ecspresso-test:259",
        "arn:aws:ecs:ap-northeast-1:************:task-definition/ecspresso-test:261",
        "arn:aws:ecs:ap-northeast-1:************:task-definition/ecspresso-test:262",
        "arn:aws:ecs:ap-northeast-1:************:task-definition/ecspresso-test:263",
        "arn:aws:ecs:ap-northeast-1:************:task-definition/ecspresso-test:264"
    ]
}

Run a task with --latest-task-definition. The task ID is c748c2b02f614c12abfae317e1f9c624.

$ ecspresso run --config config.yaml --envfile envfile --latest-task-definition --no-wait
2021/03/20 00:41:14 nginx-local/ecspresso-test Running task 
Service: nginx-local
Cluster: ecspresso-test
TaskDefinition: ecspresso-test:262
Deployments:
   PRIMARY ecspresso-test:262 desired:0 pending:0 running:0
Events:
2021/03/20 00:41:16 nginx-local/ecspresso-test Running task
2021/03/20 00:41:17 nginx-local/ecspresso-test Task ARN: arn:aws:ecs:ap-northeast-1:************:task/ecspresso-test/c748c2b02f614c12abfae317e1f9c624
2021/03/20 00:41:17 nginx-local/ecspresso-test Run task invoked

c748c2b02f614c12abfae317e1f9c624 run by ecspresso-test:264 (latest, not used in ECS service).

$ aws ecs describe-tasks --cluster ecspresso-test --tasks c748c2b02f614c12abfae317e1f9c624 --query 'tasks[0].taskDefinitionArn'
"arn:aws:ecs:ap-northeast-1:************:task-definition/ecspresso-test:264"

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.