-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(opensearch): correctly validate ebs configuration against instanc…
…e types (#16911) Currently, the following valid cluster configurations are not possible to be created with CDK. ```ts new es.Domain(stack, 'Domain1', { version: es.EngineVersion.OPENSEARCH_1_0, ebs: { enabled: false }, capacity: { masterNodes: 3, masterNodeInstanceType: 'c5.2xlarge.search', dataNodeInstanceType: 'i3.2xlarge.search' } }); new es.Domain(stack, 'Domain2', { version: es.EngineVersion.OPENSEARCH_1_0, ebs: { enabled: false, }, capacity: { masterNodes: 3, masterNodeInstanceType: 'c6g.large.search', dataNodeInstanceType: 'r6gd.large.search' } }); ``` Throws error: `EBS volumes are required when using instance types other than r3, i3 or r6gd.` Here, EBS validation is being checked on master nodes instead of just the data nodes - which causes the above failure. This PR applies fix on both `elasticsearch` and `opensearchservice` modules Fixes #11898 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
4 changed files
with
98 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters