Skip to content

feat(opensearchservice): add useLatestServiceSoftwareForBlueGreen support - #38499

Draft
Swathi-Karanth wants to merge 1 commit into
aws:mainfrom
Swathi-Karanth:feat/opensearch-blue-green-software-update
Draft

feat(opensearchservice): add useLatestServiceSoftwareForBlueGreen support#38499
Swathi-Karanth wants to merge 1 commit into
aws:mainfrom
Swathi-Karanth:feat/opensearch-blue-green-software-update

Conversation

@Swathi-Karanth

Copy link
Copy Markdown

Issue

Adds support for UseLatestServiceSoftwareForBlueGreen in the OpenSearch domain SoftwareUpdateOptions, aligning the L2 construct with the service API.

Reason for this change

The OpenSearch Service API supports UseLatestServiceSoftwareForBlueGreen in SoftwareUpdateOptions, which allows domains to automatically use the latest available service software when a blue/green deployment is triggered. This property is already in the CloudFormation resource schema (AWS::OpenSearchService::Domain) but was missing from the CDK L2 construct.

Description of changes

  • Added useLatestServiceSoftwareForBlueGreen optional boolean prop to DomainProps
  • Updated L1 wiring to pass the property through to softwareUpdateOptions
  • Updated the softwareUpdateOptions condition to render when either enableAutoSoftwareUpdate or useLatestServiceSoftwareForBlueGreen is specified
  • Updated README with usage example
  • Added unit tests

Description of how you validated changes

Unit tests covering:

  • useLatestServiceSoftwareForBlueGreen set to true
  • useLatestServiceSoftwareForBlueGreen set to false
  • Both props used together
  • Existing tests still pass (absent when neither prop specified)

Checklist

  • My code adheres to the CONTRIBUTING GUIDE
  • Is this a breaking change (changing existing behavior or interface)? No
  • Does this change require a documentation update? Yes (README updated)
  • Does this change require an update to the integration tests? Not required (no new CFN resource type)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions Bot added the p2 label Aug 5, 2026
@aws-cdk-automation
aws-cdk-automation requested a review from a team August 5, 2026 13:57
@github-actions github-actions Bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

👋 It looks like your PR description follows the template but is missing a valid issue number in the first section.

PRs without a linked issue will receive lower priority for review and merging. Please update the description to include a reference like Closes #123. If no existing issue matches your change, create one first.

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The pull request linter fails with the following errors:

❌ Features must contain a change to an integration test file and the resulting snapshot.

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

…port in SoftwareUpdateOptions for OpenSearch
@Swathi-Karanth
Swathi-Karanth force-pushed the feat/opensearch-blue-green-software-update branch from 8ece8e4 to 181c3cc Compare August 5, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants