Skip to content

Commit

Permalink
feat(opensearch): OpenSearch 2.11 engine version (#28109)
Browse files Browse the repository at this point in the history
[Amazon OpenSearch Service now supports OpenSearch version 2.11](https://aws.amazon.com/jp/about-aws/whats-new/2023/11/amazon-opensearch-supports-version-2-11/)

In the old 2.9 PR, the Readme.md was not updated, so I have not done it this time either.
#27612

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
watany-dev authored Nov 22, 2023
1 parent 461b81f commit 31c18f7
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 31 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"EncryptionAtRestOptions": {
"Enabled": false
},
"EngineVersion": "OpenSearch_2.9",
"EngineVersion": "OpenSearch_2.11",
"LogPublishingOptions": {},
"NodeToNodeEncryptionOptions": {
"Enabled": false
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class TestStack extends Stack {

// deploy the latest opensearch domain with minimal configuration
const domainProps: opensearch.DomainProps = {
version: opensearch.EngineVersion.OPENSEARCH_2_9,
version: opensearch.EngineVersion.OPENSEARCH_2_11,
removalPolicy: RemovalPolicy.DESTROY,
capacity: {
multiAzWithStandbyEnabled: false,
Expand Down
6 changes: 6 additions & 0 deletions packages/aws-cdk-lib/aws-opensearchservice/lib/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ export class EngineVersion {
/** AWS OpenSearch 2.9 */
public static readonly OPENSEARCH_2_9 = EngineVersion.openSearch('2.9');

/** AWS OpenSearch 2.10 */
public static readonly OPENSEARCH_2_10 = EngineVersion.openSearch('2.10');

/** AWS OpenSearch 2.11 */
public static readonly OPENSEARCH_2_11 = EngineVersion.openSearch('2.11');

/**
* Custom ElasticSearch version
* @param version custom version number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const testedOpenSearchVersions = [
EngineVersion.OPENSEARCH_2_5,
EngineVersion.OPENSEARCH_2_7,
EngineVersion.OPENSEARCH_2_9,
EngineVersion.OPENSEARCH_2_10,
EngineVersion.OPENSEARCH_2_11,
];

each(testedOpenSearchVersions).test('connections throws if domain is not placed inside a vpc', (engineVersion) => {
Expand Down Expand Up @@ -203,6 +205,8 @@ each([
[EngineVersion.OPENSEARCH_2_5, 'OpenSearch_2.5'],
[EngineVersion.OPENSEARCH_2_7, 'OpenSearch_2.7'],
[EngineVersion.OPENSEARCH_2_9, 'OpenSearch_2.9'],
[EngineVersion.OPENSEARCH_2_10, 'OpenSearch_2.10'],
[EngineVersion.OPENSEARCH_2_11, 'OpenSearch_2.11'],
]).test('minimal example renders correctly', (engineVersion, expectedCfVersion) => {
new Domain(stack, 'Domain', { version: engineVersion });

Expand Down

0 comments on commit 31c18f7

Please sign in to comment.