1 Answer
- Newest
- Most votes
- Most comments
3
Hello.
It's mentioned in the documentation below, but I don't think you can use custom domains with private APIs.
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-apis.html#apigateway-private-api-considerations
Custom domain names aren't supported for private APIs.
As a workaround, the AWS documentation introduces a method to create a load balancer targeting the private IP address of the ENI of the VPC endpoint linked to the private API Gateway.
https://repost.aws/knowledge-center/invoke-private-api-gateway
https://serverlessland.com/repos/apigw-private-custom-domain-name
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 5 months ago
