Skip to content

(aws-ecs): Add support for Container Insights with enhanced observability #32618

@MPOgbourne

Description

@MPOgbourne

Describe the feature

Container Insights with enhanced observability was recently announced and released for ECS. Cloudformation supports setting this at cluster level.

Container Insights with enhanced observability now available in Amazon ECS

Use Case

I'm excited to try out the new observability features, but it's simpler if I can implement the change via the CDK. This is supported via cloudformation.

Proposed Solution

I would propose being able to directly set the container insights level (disabled, enabled, enhanced) on the L2 cluster construct. Ideally, this would be something like new ecs.Cluster(stack, 'EcsCluster', { containerInsights: ContainerInsights.ENHANCED});.
To avoid a breaking change, a new property (containerInsightsLevel?) will be added and the containerInsights property will be marked as deprecated.

Other Information

No response

Acknowledgements

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

CDK version used

2.173.2

Environment details (OS name and version, etc.)

Ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ecsRelated to Amazon Elastic Containereffort/smallSmall work item – less than a day 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