feat: adds code for showing service event info when using ecs deploy controller
Issue #, if available: https://github.com/aws-actions/amazon-ecs-deploy-task-definition/issues/447
Description of changes:
- Added the new input show-service-events to enable the routine
- The routine will call describe-ecs-service each amount of seconds seconds to check how is the rolloutState of the deployment.
- If it is FAILED or IN_PROGRESS but with failedTasksCount more than 0, will detect that the deployment didn't go well, will show the latest events and throw error.
- If there is a task failed, show the stop reason of the task
- If it is COMPLETED keep going.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Hi @felipem1210,
Thank you for your Patience. We appreciate your contribution to the repository and will be working to review the changes in the Pull Request. We will reach-out if with any questions or suggestions during the review.
In the meantime please ensure that below steps, if not already completed, are taken care of in your Pull Request:
-
Verify if PR follows semantic pull request conventions.
-
Resolve any conflicts on the PR
-
Please run
npm run packagecommand to update dist/ folder with latest dependencies.
What needs to happen to get this merged please? We are running into the issue where we have the deployment circuit breaker enabled and am getting a successful return from the action even when the rollback was initiated. This output would help determine issues.