(aws-ecs): Add support for Container Insights with enhanced observability #32618
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
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
CDK version used
2.173.2
Environment details (OS name and version, etc.)
Ubuntu 22.04
The text was updated successfully, but these errors were encountered: