Open rajyan opened 2 years ago
@ryparker Thanks for the labels. Could I ask what I should add to resolve "needs-reproduction"? I believe I had produced a minimal reproducer, copy-paste ready stack example.
@rajyan The "needs-reproduction" label was just a temporary marker that means we haven't verified the reproduction.
Thank you for providing reproduction code. I was able to reproduce this however i'm not sure if this is a CDK issue. Even when you remove the executeCommandConfiguration
, it does not re-enable containerInsights
on the cluster. The only way to re-enable containerInsights
is to delete the cluster and start fresh. This seems to me like a bug in the ECS service.
I confirmed that even with executeCommandConfiguration
provided, the CloudFormation output included the containerInsights
config:
"ClusterEB0386A7": {
"Type": "AWS::ECS::Cluster",
"Properties": {
"ClusterSettings": [
{
"Name": "containerInsights",
"Value": "enabled"
}
]
},
"Metadata": {
"aws:cdk:path": "cdk-ecs-bug/Cluster/Resource"
}
},
Handling this internally. I'll follow up in this thread when we have updates to share.
@ryparker
The "needs-reproduction" label was just a temporary marker that means we haven't verified the reproduction.
I’m sorry to hurry you.
Thank you very much for your investigation!
SIM #ECS-17445
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
I think this issue is not fixed yet?
What is the problem?
ECS Cluster container insights gets disabled, even if the cdk stack settings is set to
true
.Reproduction Steps
Created a minimal reproducible example at https://github.com/rajyan/cdk-ecs-bug.
First, deploy a cluster with
containerInsights: true
only.Then deploy the cluster adding
executeCommandConfiguration
, leavingcontainerInsights: true
.What did you expect to happen?
Only executeCommandConfiguration should be added to the cluster, and no changes in containerInsights.
What actually happened?
Container insights got disabled.
CDK CLI Version
1.134.0
Framework Version
No response
Node.js Version
v16.13.0
OS
Both on Linux and maxOS
Language
Typescript
Language Version
TypeScript (3.9.7)
Other information
Also confirmed that deploying these two settings at once won't disable container insights.