opensearchservice.EngineVersion: no support for OpenSearch version 2.9 #27574
Labels
@aws-cdk/aws-opensearch
Related to the @aws-cdk/aws-opensearchservice package
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
p2
Describe the bug
OpenSearch 2.9 is out but not available to create domain cluster (via Domain.Builder in cdk) with version 2.9 as EngineVersion class does not support it
(enum has until 2.7 version(EngineVersion.OPENSEARCH_2_7))
and cannot workaround this with a string "OPENSEARCH_2_9"
Expected Behavior
it will be possible to create a domain with EngineVersion = OPENSEARCH_2_9
in order to create opensearch cluster with version 2.9 via cdk
Current Behavior
domain version via cdk could be only until 2.7 due to lack of EngineVersion support for it
Reproduction Steps
Create a OpenSearch domain via cdk like so :
IDomain os = Domain.Builder
.create(this, "OpenSearchService")
.domainName(domainName)
.version(EngineVersion.OPENSEARCH_2_9)
Possible Solution
refactor EngineVersion to have
OPENSEARCH_2_9 = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.opensearchservice.EngineVersion.class, "OPENSEARCH_2_9", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.opensearchservice.EngineVersion.class));
Additional Information/Context
No response
CDK CLI Version
2.101.1
Framework Version
No response
Node.js Version
18.18.0
OS
windows
Language
Java
Language Version
Java 17
Other information
No response
The text was updated successfully, but these errors were encountered: