Skip to content

opensearch: High Level Constructs For OpenSearchOffPeakWindowOptions and Software Update Options Feature #26388

@AmanRajAWS

Description

@AmanRajAWS

Describe the feature

The OpenSearch Team has recently launched OffPeak and Software Update OptionsFeature for OpenSearch Domain. OffPeakWindowOptionsLink.
SoftwareUpdateOptionsLink
According to the CDK docs currently there is no high level CDK construct for these features.
CDK docs link for OffPeakWindowOptionsProperty
CDK Docs link for OffPeakWindow
CDK Docs link for SoftwareUpdateOptions
CFN docs link for OffPeakWindow
CFN docs link for OffPeakWindowOptions
CFN docs link for SoftwareUpdateOptions

Use Case

The general recommendation is to use high level constructs and due to lack of High level construct for this feature, the CDK template needs to be migrated to use CFN constructs if there is a need to Create OffPeak window for OpenSearch Domain . This serves as a hinderance to the adoption of the OffPeak Window and Software Update Options feature for AWS OpenSearch Domains.

Proposed Solution

Add the OffPeakWindowOptions to the OpenSearch Domain Props(https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_opensearchservice.Domain.html) .
Configuring OffPeakWindowOptions on OpenSearchDomain created using CDK high level constructs should look like
const domain = new Domain(this, 'Domain', {
version: EngineVersion.OPENSEARCH_1_0,

offPeakWindowOptions: {
enabled: true (possible values: [true,false])
offPeakWindow: {
windowStartTime: {
hours: 4 [possible values from 0 to 60]
minutes: 4 [possible values from 0 to 60]
}
}
},
softwareUpdateOptions : {
autoSoftwareUpdateEnabled: true (possible values: [true,false])
}
});

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.84.0

Environment details (OS name and version, etc.)

macOS Ventura 13.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-opensearchRelated to the @aws-cdk/aws-opensearchservice packageeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions