Skip to content

aws-cdk-lib/aws-ecs: Add task start up error logging to cdk output #34552

Open
@bytesnz-doc

Description

@bytesnz-doc

Describe the feature

To log ECS task start-up errors to the logs when running cdk deploy

Use Case

A cloudformation stack update can seem to hang if the update is failing to start an ECS task (for example if you forgot to give it permission to access and ECR repository). Instead of having to dig down to the ECS task, it would be great if these kind of errors were displayed when running cdk deploy so you can more instantly see there is an issue and do something about it.

Proposed Solution

Detect problems on task deployment/execution and log an error to the console running cdk deploy

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.195.0

AWS CDK CLI version

2.1014.0

Environment details (OS name and version, etc.)

Windows and Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ecsRelated to Amazon Elastic Containereffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions