Skip to content

Iankhou ecs logs poc#1505

Draft
iankhou wants to merge 3 commits into
mainfrom
iankhou-ecs-logs-poc
Draft

Iankhou ecs logs poc#1505
iankhou wants to merge 3 commits into
mainfrom
iankhou-ecs-logs-poc

Conversation

@iankhou
Copy link
Copy Markdown
Contributor

@iankhou iankhou commented May 12, 2026

Pending tests and potential cleanups with custom resource implementation. Pending dual-role implementation (allow using lookup role or deploy role).

Logs from running with https://github.com/rix0rrr/cdk-app-with-problems.

ianhou@c889f3e263eb cdk-app-with-problems % ~/workplace/aws-cdk-cli/packages/aws-cdk/bin/cdk deploy --require-approval never --no-rollback

✨  Synthesis time: 3.17s

StackProblemsStack: creating CloudFormation changeset...
Changeset arn:aws:cloudformation:us-east-1:229816860325:changeSet/cdk-deploy-change-set/29723b92-a9f8-44d6-a4b0-2cdcd5b6a776 created and waiting in review for manual execution (--no-execute)
StackProblemsStack: deploying... [1/1]
6:52:13 PM | CREATE_FAILED        | AWS::ECS::Service                     | ServiceD69D759B
Resource handler returned message: "Error occurred during operation 'ECS Deployment Circuit Breaker was triggered'." (RequestToken: 92fe6ed4-3633-f1a2-ea49-c176d05943c1, HandlerErrorCode: GeneralServiceException)

❌  StackProblemsStack failed: DeploymentError: Resource updates failed:
 └─ StackProblemsStack
     └─ Service
         └─ Service  (AWS::ECS::Service ServiceD69D759B)
            🛑 Resource handler returned message: "Error occurred during operation 'ECS Deployment Circuit Breaker was triggered'."
               (RequestToken: 92fe6ed4-3633-f1a2-ea49-c176d05943c1, HandlerErrorCode: GeneralServiceException)

            📋 ECS Stopped Tasks:
               Task stopped: Essential container in task exited
               Task stopped: Essential container in task exited
               Task stopped: Essential container in task exited

            📋 CloudWatch Logs: StackProblemsStack-TaskDefDefaultContainerLogGroupF9305A4C-PEt1F2oQVZQm (container: DefaultContainer):
               Traceback (most recent call last):
                 File "//main.py", line 1, in <module>
                   raise RuntimeError('Oops we failed')
               RuntimeError: Oops we failed
               Traceback (most recent call last):
                 File "//main.py", line 1, in <module>
                   raise RuntimeError('Oops we failed')
               RuntimeError: Oops we failed
               Traceback (most recent call last):
                 File "//main.py", line 1, in <module>
                   raise RuntimeError('Oops we failed')
               RuntimeError: Oops we failed
               Traceback (most recent call last):
                 File "//main.py", line 1, in <module>
                   raise RuntimeError('Oops we failed')
               RuntimeError: Oops we failed
DeploymentError: ❌  StackProblemsStack failed: DeploymentError: Resource updates failed:
 └─ StackProblemsStack
     └─ Service
         └─ Service  (AWS::ECS::Service ServiceD69D759B)
            🛑 Resource handler returned message: "Error occurred during operation 'ECS Deployment Circuit Breaker was triggered'."
               (RequestToken: 92fe6ed4-3633-f1a2-ea49-c176d05943c1, HandlerErrorCode: GeneralServiceException)

            📋 ECS Stopped Tasks:
               Task stopped: Essential container in task exited
               Task stopped: Essential container in task exited
               Task stopped: Essential container in task exited

            📋 CloudWatch Logs: StackProblemsStack-TaskDefDefaultContainerLogGroupF9305A4C-PEt1F2oQVZQm (container: DefaultContainer):
               Traceback (most recent call last):
                 File "//main.py", line 1, in <module>
                   raise RuntimeError('Oops we failed')
               RuntimeError: Oops we failed
               Traceback (most recent call last):
                 File "//main.py", line 1, in <module>
                   raise RuntimeError('Oops we failed')
               RuntimeError: Oops we failed
               Traceback (most recent call last):
                 File "//main.py", line 1, in <module>
                   raise RuntimeError('Oops we failed')
               RuntimeError: Oops we failed
               Traceback (most recent call last):
                 File "//main.py", line 1, in <module>
                   raise RuntimeError('Oops we failed')
               RuntimeError: Oops we failed
    at Object.deployStack (/Users/ianhou/workplace/aws-cdk-cli/packages/aws-cdk/lib/cli/cdk-toolkit.ts:760:30)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async <anonymous> (/Users/ianhou/workplace/aws-cdk-cli/packages/@aws-cdk/toolkit-lib/lib/api/work-graph/work-graph.ts:115:11)

Checklist

  • This change contains a major version upgrade for a dependency and I confirm all breaking changes are addressed
    • Release notes for the new version:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions
Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added the p2 label May 12, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team May 12, 2026 22:49
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.10%. Comparing base (19f694d) to head (f75adae).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1505      +/-   ##
==========================================
+ Coverage   88.08%   88.10%   +0.01%     
==========================================
  Files          74       74              
  Lines       10671    10671              
  Branches     1459     1458       -1     
==========================================
+ Hits         9400     9402       +2     
+ Misses       1243     1241       -2     
  Partials       28       28              
Flag Coverage Δ
suite.unit 88.10% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants