Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

opensearch-service: custom endpoint configuration is not removed on rollback or delete #28724

Closed
dermicus-miclip opened this issue Jan 16, 2024 · 2 comments
Labels
@aws-cdk/aws-opensearch Related to the @aws-cdk/aws-opensearchservice package bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/medium Medium work item – several days of effort p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@dermicus-miclip
Copy link

Describe the bug

When updating an OpenSearch service domain and adding a custom endpoint, on rollback (due to failure) the custom endpoint is not removed.

The same issue occurs when attempting to remove a custom endpoint that already exists.

When using CDK along with an ACM certificate and a R53 hosted zone, the result is that the cloudformation stack is now in an endless loop, as it cannot delete the ACM certificate as it is still in use in the OpenSearch domain's custom endpoint. It can be resolved by manually deleting the Opensearch custom endpoint.

Expected Behavior

Cloudformation eventually marks the OpenSearch domain as UPDATED in the console.

Current Behavior

The Cloudformation update should actually trigger the deletion of the custom endpoint of the OpenSearch domain.

Reproduction Steps

  • Create an opensearch domain in CDK and let the Cloudformation stack be created
  • Update the custom endpoint configuration and add one using a certificate and r53 hosted zone explicitly configured
  • Now try to delete the custom endpoint again

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.114.1

Framework Version

No response

Node.js Version

18.x

OS

macOS

Language

TypeScript

Language Version

4.7

Other information

No response

@dermicus-miclip dermicus-miclip added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 16, 2024
@github-actions github-actions bot added the @aws-cdk/aws-opensearch Related to the @aws-cdk/aws-opensearchservice package label Jan 16, 2024
@pahud
Copy link
Contributor

pahud commented Jan 16, 2024

Thank you for the report. Are you able to share the minimal code snippets that we can reproduce in our environment?

@pahud pahud added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jan 16, 2024
Copy link

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-opensearch Related to the @aws-cdk/aws-opensearchservice package bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/medium Medium work item – several days of effort p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants