Skip to content

Commit

Permalink
feat(opensearch): adds OpenSearch 2.13 engine version
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed May 31, 2024
1 parent 4c3b6a0 commit 5953449
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"EncryptionAtRestOptions": {
"Enabled": false
},
"EngineVersion": "OpenSearch_2.11",
"EngineVersion": "OpenSearch_2.13",
"LogPublishingOptions": {
"SEARCH_SLOW_LOGS": {
"Enabled": false
Expand Down Expand Up @@ -79,4 +79,4 @@
]
}
}
}
}

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 @@ -7,7 +7,7 @@ class TestStack extends Stack {
super(scope, id, props);

const domainProps: opensearch.DomainProps = {
version: opensearch.EngineVersion.OPENSEARCH_2_11,
version: opensearch.EngineVersion.OPENSEARCH_2_13,
removalPolicy: RemovalPolicy.DESTROY,
logging: {
auditLogEnabled: false,
Expand All @@ -26,4 +26,4 @@ class TestStack extends Stack {

const app = new App();
new TestStack(app, 'cdk-integ-opensearch-with-logging-disabled');
app.synth();
app.synth();
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"EncryptionAtRestOptions": {
"Enabled": false
},
"EngineVersion": "OpenSearch_2.11",
"EngineVersion": "OpenSearch_2.13",
"LogPublishingOptions": {},
"NodeToNodeEncryptionOptions": {
"Enabled": false
Expand Down Expand Up @@ -66,4 +66,4 @@
]
}
}
}
}

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_11,
version: opensearch.EngineVersion.OPENSEARCH_2_13,
removalPolicy: RemovalPolicy.DESTROY,
capacity: {
multiAzWithStandbyEnabled: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"EncryptionAtRestOptions": {
"Enabled": false
},
"EngineVersion": "OpenSearch_2.11",
"EngineVersion": "OpenSearch_2.13",
"LogPublishingOptions": {
"ES_APPLICATION_LOGS": {
"CloudWatchLogsLogGroupArn": {
Expand Down Expand Up @@ -73,4 +73,4 @@
]
}
}
}
}

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 @@ -34,7 +34,7 @@ class TestStack extends Stack {
super(scope, id, props);

const domainProps: opensearch.DomainProps = {
version: opensearch.EngineVersion.OPENSEARCH_2_11,
version: opensearch.EngineVersion.OPENSEARCH_2_13,
removalPolicy: RemovalPolicy.DESTROY,
logging: {
appLogEnabled: true,
Expand Down
11 changes: 7 additions & 4 deletions packages/aws-cdk-lib/aws-opensearchservice/lib/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,18 @@ 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.10
* AWS OpenSearch 2.11
* @deprecated use latest version of the OpenSearch engine
**/
public static readonly OPENSEARCH_2_10 = EngineVersion.openSearch('2.10');

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

/** AWS OpenSearch 2.13 */
public static readonly OPENSEARCH_2_13 = EngineVersion.openSearch('2.13');

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

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

Expand Down

0 comments on commit 5953449

Please sign in to comment.