(cli): ECS hotswap breaks Firelens configuration #21692
Labels
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
When I hotswap ECS service with the below Firelens configuration, the deployment fails because it seems
options.Name
is implicitly converted tooptions.name
during hotswap.Expected Behavior
Hotswap deployment successes just like CFn deployment.
Current Behavior
After hotswap, the fluentbit container failed to start with the following stoppedReason:
Reproduction Steps
fromRegistry('nginx')
tofromRegistry('nginx:latest')
to trigger hotswapcdk deploy --hotswap
Possible Solution
This line seems to be the root cause of this problem.
aws-cdk/packages/aws-cdk/lib/api/hotswap/ecs-services.ts
Lines 94 to 95 in 62cbcde
There are several properties in the
RegisterTaskDefinition
request that take arbitrary string as a property key, such asdockerLabels
,logConfiguration.options
, ordockerVolumeConfiguration.labels
in addition tofirelensConfiguration.options
. We must not lowercase those property keys selectively.Additional Information/Context
No response
CDK CLI Version
2.38.1
Framework Version
2.38.1
Node.js Version
16.15.0
OS
macOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: