-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
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