When trying to create Elasticsearch domain with master node type c5.2xlarge.elasticsearch, data node type i3.2xlarge.elasticsearch, with ebs disabled, cdk throws exception says
throw new Error('EBS volumes are required when using instance types other than r3 or i3.');
If I enable ebs, it throws exception:
throw new Error('I3 instance types do not support EBS storage volumes.');
The version I am using is 1.76.
From API reference, the ebs suppose to be only attached to master node in my case, however the validation couldn't distinguish data node and master node. With my instance config, it thinks c5 should have ebs, but i3 shouldn't.
c5 is recommended for master node, and i3 for data node. With this bug, there is no way to use CDK to create Elasticsearch domain with master nodes.