aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.67k stars 3.92k forks source link

Amazon OpenSearch Service: High Level Constructs For OpenSearch IPAddressType Feature #28436

Closed vidit624 closed 10 months ago

vidit624 commented 10 months ago

Describe the feature

The OpenSearch Team has recently launched IPAddressType Feature for OpenSearch Domain. API Documentation Link. According to the CDK docs currently there is no high level CDK construct for this feature

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 an OpenSearchDomain with IPAddressType. This serves as a hinderance to the adoption of the IPAddressType feature for AWS OpenSearch Domains.

Proposed Solution

Add the IPAddressType to the Domain high level object CDK Doc for Domain Options . A IPAddressType based OpenSearchDomain created using CDK high level constructs should look like

const domain = new Domain(this, 'Domain', {
  version: EngineVersion.OPENSEARCH_1_0,
  ipAddressType: ipv4 (possible values: [ipv4, dualstack])
  capacity: {
  masterNodes: 3
  },
});

Other Information

No response

Acknowledgements

CDK version used

2.84.0

Environment details (OS name and version, etc.)

macOS Ventura 13.4

pahud commented 10 months ago

Yes, the prop is already in L1. Should be easy to expose that to the L2 props. Are you interested to submit a PR for that?

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html#cfn-opensearchservice-domain-ipaddresstype

github-actions[bot] commented 10 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.