Skip to content

fix(ecs): enableDeploymentAlarms does not add additional alarms on subsequent calls#37330

Closed
syukawa-gh wants to merge 3 commits intoaws:mainfrom
syukawa-gh:fix/ecs-deployment-alarms-concat-clean
Closed

fix(ecs): enableDeploymentAlarms does not add additional alarms on subsequent calls#37330
syukawa-gh wants to merge 3 commits intoaws:mainfrom
syukawa-gh:fix/ecs-deployment-alarms-concat-clean

Conversation

@syukawa-gh
Copy link
Copy Markdown
Contributor

Array.concat() returns a new array without modifying the original. The additional alarm names passed to subsequent calls of enableDeploymentAlarms() were silently discarded.

Changed to Array.push() to actually append the new alarm names to the existing deployment alarms configuration.

Closes #36308

…subsequent calls

Array.concat() returns a new array without modifying the original.
Changed to Array.push() to actually append the new alarm names
to the existing deployment alarms configuration.

Closes aws#36308
@github-actions github-actions bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/small Small work item – less than a day of effort p1 labels Mar 23, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team March 23, 2026 10:16
Copy link
Copy Markdown
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

@syukawa-gh
Copy link
Copy Markdown
Contributor Author

Exemption Request: This PR fixes a one-line bug (Array.concat → Array.push). Unit test has been added. Integration test is not applicable as this is an in-memory logic fix that doesn't change CloudFormation template structure for single-call usage.

@aws-cdk-automation aws-cdk-automation added the pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. label Mar 24, 2026
@aws-cdk-automation aws-cdk-automation dismissed their stale review March 24, 2026 02:15

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@syukawa-gh
Copy link
Copy Markdown
Contributor Author

Closing in favor of #37481 (same change, updated version)

@syukawa-gh syukawa-gh closed this Apr 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/small Small work item – less than a day of effort p1 pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(ecs): enableDeploymentAlarms does not actually add additional alarms

3 participants