aws / aws/aws-cdk

OpenSearch: customEndpoint's CNAME should point to Dual-Stack endpoint when OpenSearch is using Dualstack

Open
#30,480 2 comments 2 reactions 0 assignees View on GitHub
@aws-cdk/aws-opensearch effort/small feature-request p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

When an OpenSearch domain is created with a customEndpoint, a CNAME is created pointing to the 'Domain endpoint (IPv4)' (https://[DOMAIN_ID].[REGION].es.amazonaws.com). If the OpenSearchDomain supports DualStack, then the customEndpoint should point to 'Domain endpoint v2 (dual stack)' (https://[DOMAIN_ID].aos.[REGION].on.aws).

### Use Case

We are trying to get rid of IPv4 addresses. During the transition, it would be great to have everything running in dual-stack mode, and later in pure IPv6. Unfortunately, OpenSearch's custom endpoint doesn't currently support dual stack.

### Proposed Solution

_No response_

### 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.144.0

### Environment details (OS name and version, etc.)

macOS 14.5 23F79 / openjdk version "21.0.3" 2024-04-16

Contributor guide

Open the contributing guide

Research direction

Locate the OpenSearch domain implementation for customEndpoint and its related tests, then inspect how the domain's dual-stack setting and endpoint are represented. Done means a custom endpoint CNAME uses the dual-stack endpoint when dual-stack is enabled, while existing behavior remains correct otherwise, with tests covering the selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.