Skip to content

fix(opensearchservice): enableAutoSoftwareUpdate: false is not reflected in the CloudFormation template#37152

Merged
mergify[bot] merged 3 commits intoaws:mainfrom
badmintoncryer:fix/opensearch-auto-software-update
Mar 4, 2026
Merged

fix(opensearchservice): enableAutoSoftwareUpdate: false is not reflected in the CloudFormation template#37152
mergify[bot] merged 3 commits intoaws:mainfrom
badmintoncryer:fix/opensearch-auto-software-update

Conversation

@badmintoncryer
Copy link
Contributor

@badmintoncryer badmintoncryer commented Mar 3, 2026

Issue

Relates to #36382 (review thread).

Reason for this change

The truthiness check on enableAutoSoftwareUpdate treated false as falsy, causing SoftwareUpdateOptions to be omitted from the CloudFormation template entirely. This made it impossible to disable auto software update once it had been enabled.

Description of changes

Changed the condition from props.enableAutoSoftwareUpdate ? ... to props.enableAutoSoftwareUpdate !== undefined ? ... so that an explicit false value is correctly rendered in the template. This is consistent with the existing pattern used for coldStorageEnabled in the same file.

Description of how you validated changes

Add unit test.

Checklist

…abling it

The truthiness check on `enableAutoSoftwareUpdate` treated `false` as
falsy, causing `SoftwareUpdateOptions` to be omitted from the template
entirely. This made it impossible to disable auto software update once
it had been enabled.

Changed the check from `props.enableAutoSoftwareUpdate ? ...` to
`props.enableAutoSoftwareUpdate !== undefined ? ...` so that an
explicit `false` value is correctly rendered in the CloudFormation
template.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@aws-cdk-automation aws-cdk-automation requested a review from a team March 3, 2026 15:21
@github-actions github-actions bot added p2 distinguished-contributor [Pilot] contributed 50+ PRs to the CDK labels Mar 3, 2026
Copy link
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)

@badmintoncryer
Copy link
Contributor Author

exemption request
I think this modification does not need a integration test.

@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 3, 2026
@badmintoncryer badmintoncryer changed the title fix(opensearchservice): allow disabling auto software update after enabling it fix(opensearchservice): enableAutoSoftwareUpdate: false is not reflected in the CloudFormation template Mar 3, 2026
@leonmk-aws leonmk-aws self-assigned this Mar 3, 2026
@leonmk-aws leonmk-aws added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Mar 3, 2026
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Mar 3, 2026
@aws-cdk-automation aws-cdk-automation dismissed their stale review March 3, 2026 16:11

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

@mergify
Copy link
Contributor

mergify bot commented Mar 3, 2026

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mrgrain mrgrain removed pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. labels Mar 3, 2026
@mergify
Copy link
Contributor

mergify bot commented Mar 3, 2026

Merge Queue Status

Rule: default-squash


  • Entered queue2026-03-03 20:21 UTC
  • Checks passed · in-place
  • Merged2026-03-04 09:37 UTC · at 7b88f446d50452a4e41ff2d9ff734a5949d33592

This pull request spent 13 hours 15 minutes 30 seconds in the queue, including 43 minutes 22 seconds running CI.

Required conditions to merge

@mergify
Copy link
Contributor

mergify bot commented Mar 3, 2026

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Mar 4, 2026

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit dec8e6f into aws:main Mar 4, 2026
15 of 16 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 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.

@badmintoncryer badmintoncryer deleted the fix/opensearch-auto-software-update branch March 4, 2026 09:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

distinguished-contributor [Pilot] contributed 50+ PRs to the CDK p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants