-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(aws-stepfunctions-tasks): Fargate task definition contains version which causes step function failure when new task definition is pushed. #12080
Comments
@gupta-n thanks for reporting the issue. I think we'll need some more information before this can be actioned:
what's the code required to produce it? what's the expectation?
what's the point of failure? when executing the state machine? when deploying the CloudFormation template?
I'm a little lost, are multiple deployments needed to produce this issue? how/where is the task definition defined?
what kind of changes? are they prerequisites to producing the error? Environment can you fill in all of the requisite version information (NA is not possible for Node.js version and OS). Please mention the specific version that you are using as it's not asking for which versions the bug might be present in. As i see it, a first step would be to reproduce this error. A minimal code sample and the steps required to produce the failure scenario would be a starting point. |
I'm a little lost, are multiple deployments needed to produce this issue?
how/where is the task definition defined?
when you say version bump, what are you referring to? how is that version bump observed?
please provide a minimal set of reproduction steps to define a state machine with a problematic task definition.
|
…instead of ARN (#12436) feat(stepfunctions-tasks): EcsRunTask now uses taskDefinition family instead of ARN Currently the ECS run task implementation uses full ARN of the task definition. This ARN contains the ACTIVE revision at the end. The ACTIVE revision keeps on changing as the task definition changes causing potential failures (refer the issue). This change now lets the run task API to use task definition family (and corresponding ARN which does not contain the revision) to run the task. Using the family would mean that the latest ACTIVE revision of task-definition is used always. This is supported out of the box by ECS (refer the below refs). Parameter Ref: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-taskDefinition Permissions Ref: https://docs.aws.amazon.com/step-functions/latest/dg/ecs-iam.html closes #12080 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…instead of ARN (aws#12436) feat(stepfunctions-tasks): EcsRunTask now uses taskDefinition family instead of ARN Currently the ECS run task implementation uses full ARN of the task definition. This ARN contains the ACTIVE revision at the end. The ACTIVE revision keeps on changing as the task definition changes causing potential failures (refer the issue). This change now lets the run task API to use task definition family (and corresponding ARN which does not contain the revision) to run the task. Using the family would mean that the latest ACTIVE revision of task-definition is used always. This is supported out of the box by ECS (refer the below refs). Parameter Ref: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-taskDefinition Permissions Ref: https://docs.aws.amazon.com/step-functions/latest/dg/ecs-iam.html closes aws#12080 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Hi Team,
Currently task definition created by step function CDK appends task version which cause step function failure.
Scenario: Step function failed to launch fargate task because of some transient issue, before retry kicks in there was another deployment went which modified task definition and caused version bump. In this scenario running step function execution will failed as existing task is inactive now.
Reproduction Steps
Scenario: Step function failed to launch fargate task because of some transient issue, before retry kicks in there was another deployment went which modified task definition and caused version bump. In this scenario running step function execution will failed as existing task is inactive now.
Actual Task definition in step function
Expected output
What did you expect to happen?
When creating fargate task definition step function can attach definition to task family which will ensure to always pickup latest version and will make step function not to fail when new deployment is pushed.
https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-taskDefinition
Expected output
What actually happened?
Step function failed when new changes to task definition were pushed.
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: