-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(opensearch): add OpenSearch 3.1 engine version #35477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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)
|
Requesting Exemption Request for README changes as the |
leonmk-aws
left a comment
There was a problem hiding this 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
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
leonmk-aws
left a comment
There was a problem hiding this 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 !
|
Hi, is there anything preventing this from being merged? |
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
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
Pull request has been modified.
|
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). |
|
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). |
|
This pull request has been removed from the queue for the following reason: 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. |
|
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). |
Pull request has been modified.
|
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). |
|
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). |
|
Comments on closed issues and PRs are hard for our team to see. |
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
OPENSEARCH_3_1constant to theEngineVersionclass inaws-opensearchserviceinteg.opensearch.v3-1.tsto verify the new version works correctlyThe 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
OpenSearch_3.1)Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license