Connectivity of dbx serverless to api gateway dns in aws is failing

deepud26
New Contributor II

Hello, 

I'm trying to establish the connection between dbx serverless account which is in "Account A" to the api gateway dns name which is in "Account B" is failing. i have created a api gateway with the custom domain for ex : "api-dev.amazon.com" and also create a ACM certificate along with "A" record for it.

While accessing the dns with the api endpoint in the same network its working fine for me. But while accessing it from other network its failing and giving the below error

nnectionError: HTTPSConnectionPool(host='api-dev.amazon.com', port=443): Max retries exceeded with url: /v1/quality (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7745d552d0>: Failed to establish a new connection: [Errno -2] Name or service not known'))

Can someone kindly guide on this issue on how to solve the connectivity issue