Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
2 tasks
schabe77 opened this issue Jun 7, 2024 · 2 comments
Labels
@aws-cdk/aws-opensearch Related to the @aws-cdk/aws-opensearchservice package effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p3

Comments

@schabe77
Copy link
Contributor

schabe77 commented Jun 7, 2024

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

@schabe77 schabe77 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jun 7, 2024
@github-actions github-actions bot added the @aws-cdk/aws-opensearch Related to the @aws-cdk/aws-opensearchservice package label Jun 7, 2024
@pahud
Copy link
Contributor

pahud commented Jun 7, 2024

Makes sense to me. Can you share your CDK code snippet on how you create OpenSearchDomain that supports DualStack?

@pahud pahud added p3 effort/small Small work item – less than a day of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jun 7, 2024
@schabe77
Copy link
Contributor Author

schabe77 commented Jun 7, 2024

here a code snippet only containing the customEndpoint and the DualStack IP address type:

software.amazon.awscdk.services.opensearchservice.Domain.Builder.create(this, "OpensearchDomain")
        .customEndpoint(CustomEndpointOptions.builder()
                .domainName(properties.getCustomDomain() + "." + CONFIGURATION.getHostedZoneAttributes().getZoneName())
                .hostedZone(properties.getZone())
                .certificate(properties.getCertificate())
                .build())
        .ipAddressType(IpAddressType.DUAL_STACK)
        ...
        .build();

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
@aws-cdk/aws-opensearch Related to the @aws-cdk/aws-opensearchservice package effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p3
Projects
None yet
Development

No branches or pull requests

2 participants