Skip to content

Commit

Permalink
chore(opensearch): support OpenSearch version 2.17 (aws#32121)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)

N/A

### Reason for this change
Support  OpenSearch version 2.17.
https://docs.aws.amazon.com/opensearch-service/latest/developerguide/release-notes.html



### Description of changes
Add Enum.




### Description of how you validated changes
Add unit tests and integ tests.



### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
mazyu36 authored Nov 17, 2024
1 parent f75dc72 commit 50d11a3
Show file tree
Hide file tree
Showing 10 changed files with 102 additions and 10 deletions.

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 @@ -61,6 +61,37 @@
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"OpenSearch2174B754FE5": {
"Type": "AWS::OpenSearchService::Domain",
"Properties": {
"ClusterConfig": {
"DedicatedMasterEnabled": false,
"InstanceCount": 1,
"InstanceType": "r5.large.search",
"MultiAZWithStandbyEnabled": false,
"ZoneAwarenessEnabled": false
},
"DomainEndpointOptions": {
"EnforceHTTPS": false,
"TLSSecurityPolicy": "Policy-Min-TLS-1-0-2019-07"
},
"EBSOptions": {
"EBSEnabled": true,
"VolumeSize": 10,
"VolumeType": "gp2"
},
"EncryptionAtRestOptions": {
"Enabled": false
},
"EngineVersion": "OpenSearch_2.17",
"LogPublishingOptions": {},
"NodeToNodeEncryptionOptions": {
"Enabled": false
}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
}
},
"Parameters": {
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.

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 @@ -10,6 +10,7 @@ class TestStack extends Stack {
const versions = [
opensearch.EngineVersion.OPENSEARCH_2_13,
opensearch.EngineVersion.OPENSEARCH_2_15,
opensearch.EngineVersion.OPENSEARCH_2_17,
];

// deploy opensearch domain with minimal configuration
Expand Down
3 changes: 3 additions & 0 deletions packages/aws-cdk-lib/aws-opensearchservice/lib/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export class EngineVersion {
/** AWS OpenSearch 2.15 */
public static readonly OPENSEARCH_2_15 = EngineVersion.openSearch('2.15');

/** AWS OpenSearch 2.17 */
public static readonly OPENSEARCH_2_17 = EngineVersion.openSearch('2.17');

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

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

Expand Down

0 comments on commit 50d11a3

Please sign in to comment.