-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
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