-
Notifications
You must be signed in to change notification settings - Fork 428
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
feat(cli): add task delete command #1849
Conversation
e3d82d7
to
f1032ca
Compare
f1032ca
to
be41212
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! just some documentation suggestions
3. Delete the CloudFormation stack, including the ECR repo, log group, and ECS Task Definition. | ||
|
||
!!!info | ||
1. Tasks created with versions of Copilot earlier than v1.2.0 cannot be stopped by `copilot task delete`. Customers using tasks launched with earlier versions should manually stop any running tasks via the ECS console after running the command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the reason for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, the call in task run
to ecs.RunTask
did not have the PropagateTags: aws.String(ecs.PropagateTagsTaskDefinition)
property set so the tasks cannot be reliably identified as Copilot-initiated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The side effect would be the ability to stop tasks from a one-off task definition not started by copilot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooh yeaa gotcha, thanks for the clarification
Revised E2E test passes.
|
<!-- Provide summary of changes --> This PR does the following: * Adds `task delete` as a new command * Adds a step in `app delete` during which all existing tasks in the application's environments are deleted * Rephrases the e2e test for tasks to use the new command on teardown * Adds documentation of the new command. <!-- Issue number, if available. E.g. "Fixes aws#31", "Addresses aws#42, 77" --> Depends on aws#1840 being merged in. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
This PR does the following:
task delete
as a new commandapp delete
during which all existing tasks in the application's environments are deletedDepends on #1840 being merged in.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.