Skip to content

Conversation

@claypack
Copy link
Contributor

Issue # (if applicable)

Closes #35471.

Reason for this change

AWS OpenSearch Service now supports OpenSearch 3.1, but the CDK does not have a constant for this version. Users need to be able to specify OpenSearch 3.1 when creating OpenSearch domains through CDK.

Description of changes

  • Added OPENSEARCH_3_1 constant to the EngineVersion class in aws-opensearchservice
  • Updated unit tests to include the new version in test arrays to ensure proper validation
  • Created integration test integ.opensearch.v3-1.ts to verify the new version works correctly
  • Generated integration test snapshots to validate CloudFormation template generation

The changes follow the existing pattern for adding new OpenSearch versions and maintain backward compatibility.

Note: The original issue referenced OpenSearch 3.0, but this version does not appear to exist in AWS OpenSearch Service. Only OpenSearch 3.1 has been implemented.

Describe any new or updated permissions being added

No new IAM permissions are required. This change only adds a new engine version constant that maps to existing AWS OpenSearch Service functionality.

Description of how you validated changes

  • Added unit tests that verify the new version constant maps to the correct CloudFormation value (OpenSearch_3.1)
  • Created integration test that deploys an OpenSearch domain with version 3.1
  • Generated and validated integration test snapshots using integ-runner
  • Verified all existing tests continue to pass

Checklist


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

@aws-cdk-automation aws-cdk-automation requested a review from a team September 12, 2025 17:16
@github-actions github-actions bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK feature-request A feature should be added or improved. p2 labels Sep 12, 2025
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)

@claypack claypack changed the title Fix 35471 feat(opensearch): add OpenSearch 3.1 engine version Sep 12, 2025
@claypack
Copy link
Contributor Author

Requesting Exemption Request for README changes as the EngineVersion class will display the version on the documentation once it's added.

@aws-cdk-automation aws-cdk-automation added pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. labels Sep 12, 2025
@aws-cdk-automation aws-cdk-automation added pr/needs-maintainer-review This PR needs a review from a Core Team Member and removed pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. labels Sep 13, 2025
@leonmk-aws leonmk-aws self-assigned this Sep 15, 2025
Copy link
Contributor

@leonmk-aws leonmk-aws left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution, left a small comment

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need a new integ test for each new version, why not just add OpenSearch 3.1 in packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.min.ts ?

Copy link
Contributor Author

@claypack claypack Sep 15, 2025

Choose a reason for hiding this comment

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

Correct, I think that's better. I pushed a new commit adding 3.1 to the versions array in integ.opensearch.min.ts. I removed the previous test and updated the snapshot for integ.opensearch.min.ts.

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Sep 15, 2025
@claypack claypack requested a review from leonmk-aws September 15, 2025 14:10
leonmk-aws
leonmk-aws previously approved these changes Sep 23, 2025
Copy link
Contributor

@leonmk-aws leonmk-aws left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution !

@ajkerr
Copy link

ajkerr commented Sep 29, 2025

Hi, is there anything preventing this from being merged?

@leonmk-aws leonmk-aws added the pr-linter/exempt-readme The PR linter will not require README changes label Oct 1, 2025
@aws-cdk-automation aws-cdk-automation dismissed their stale review October 1, 2025 07:31

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

@mergify
Copy link
Contributor

mergify bot commented Oct 1, 2025

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).

- Add OPENSEARCH_3_0 and OPENSEARCH_3_1 constants to EngineVersion class
- Update unit tests to include new versions in test arrays
- Add integration tests for both new versions
- Generate snapshots for integration tests
- Remove OPENSEARCH_3_0 constant from EngineVersion class
- Remove 3.0 from unit test arrays
- Delete integ.opensearch.v3-0.ts integration test
- Delete integ.opensearch.v3-0.js.snapshot directory
- Keep only OpenSearch 3.1 version support
…tegration test

- Add OPENSEARCH_3_1 to existing integ.opensearch.min.ts versions array
- Remove separate integ.opensearch.v3-1.ts test file and snapshots
- Update snapshot to include OpenSearch 3.1 domain configuration
@mergify mergify bot dismissed leonmk-aws’s stale review October 1, 2025 07:53

Pull request has been modified.

leonmk-aws
leonmk-aws previously approved these changes Oct 1, 2025
@mergify
Copy link
Contributor

mergify bot commented Oct 1, 2025

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 added the queued label Oct 2, 2025
@mergify
Copy link
Contributor

mergify bot commented Oct 2, 2025

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 Oct 2, 2025

This pull request has been removed from the queue for the following reason: pull request branch update failed.

The pull request can't be updated.

You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue, you can requeue the pull request, without updating it, by posting a @mergifyio requeue comment.

@mergify mergify bot removed the queued label Oct 2, 2025
@mergify
Copy link
Contributor

mergify bot commented Oct 2, 2025

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 dismissed leonmk-aws’s stale review October 2, 2025 18:01

Pull request has been modified.

@mergify
Copy link
Contributor

mergify bot commented Oct 6, 2025

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 added the queued label Oct 6, 2025
@mergify
Copy link
Contributor

mergify bot commented Oct 6, 2025

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 3bd7cf9 into aws:main Oct 6, 2025
19 checks passed
@mergify mergify bot removed the queued label Oct 6, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

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 Oct 6, 2025
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 feature-request A feature should be added or improved. p2 pr-linter/exempt-readme The PR linter will not require README changes 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.

aws-opensearch: Add latest Opensearch engine version v3.1

5 participants