Skip to content

Conversation

@ohookins
Copy link
Contributor

@ohookins ohookins commented Nov 25, 2025

https://bugcrowd.atlassian.net/browse/INF-3641

https://bugcrowd.slack.com/archives/C2UJZ37HV/p1762989343701949

Addresses the problem of not having enough context on the failing container at the root of the deployment failing. Essentially just grabs the individual exit codes and failure reasons and prints them as well so we don't have to go digging in the ECS console for the developers.

Tested working:

-> Created
    Deployment created
    Step took 27 seconds to complete
-> TasksStarted
    1 Tasks have started
    Step took 0 seconds to complete
-> Live
    All tasks are live and serving requests
    Step took 20 seconds to complete
-> TasksFailed
    1 Tasks have failed

    Failure Reasons

    Task: arn:aws:ecs:us-east-1:123456789012:task/cluster/37cfd5664ae947fabf6c5f9177018471
    Reason: Essential container in task exited
      Container: app (STOPPED)
        Exit code: 137
        Reason: OutOfMemoryError: Container killed due to memory usage

@ohookins ohookins requested review from a team and sushmithaeshwar November 25, 2025 03:43
@ohookins ohookins marked this pull request as ready for review November 25, 2025 03:43
Copy link

@sushmithaeshwar sushmithaeshwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@ohookins ohookins merged commit f15ab26 into main Nov 25, 2025
4 checks passed
@ohookins ohookins deleted the inf-3641-container-failure-reasons branch November 25, 2025 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants