opensearchservice: creating OpenSearch domain from Endpoint results in malformed ARN when using VPC endpoint #29771
Labels
@aws-cdk/aws-opensearch
Related to the @aws-cdk/aws-opensearchservice package
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
Calling
Domain.fromDomainEndpoint
leads to wrongdomainArn
when called with a VPC endpoint.The problem is caused by the
extractNameFromEndpoint
function.Expected Behavior
Given endpoint
https://vpc-name-xxxxxxxxx.region.es.amazonaws.com
Expect
extractNameFromEndpoint
to returnname
Current Behavior
Actual
vpc-name
Reproduction Steps
Possible Solution
Additional Information/Context
No response
CDK CLI Version
2.136.0
Framework Version
No response
Node.js Version
v21.6.0
OS
macOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: