fix(applicationsignals-alpha): do not set user for Windows containers in CloudWatchAgentIntegration#37346
Open
syukawa-gh wants to merge 1 commit intoaws:mainfrom
Open
Conversation
aws-cdk-automation
previously requested changes
Mar 24, 2026
…rs in `CloudWatchAgentIntegration` The `user: '0:1338'` property was unconditionally set for all containers, including Windows. The `User` parameter is not supported on Windows containers and causes a CannotStartContainerError (0x52e). Skip setting `user` when the operating system family is Windows. Closes aws#34560
a36ec6c to
999b541
Compare
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
user: '0:1338'property was unconditionally set for all containers, including Windows. TheUserparameter is not supported on Windows containers and causes aCannotStartContainerError(0x52e — "The user name or password is incorrect").This change skips setting
userwhen the operating system family is Windows.Changes
ecs-cloudwatch-agent.ts: Conditionally setuseronly for non-Windows OS familiesecs-cloudwatch-agent.test.ts: Updated Windows sidecar test to not expectUserpropertyCloses #34560