cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

deepud26
New Contributor

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

2 REPLIES 2

ilir_nuredini
Honored Contributor

Hello @deepud26 ,

There are a few different things that could be causing this, and without more details it’s hard to pinpoint the exact issue. What I suggest is running the following command in "Account B" in a notebook:

 

nslookup api-dev.amazon.com

 

If you don’t get any DNS information back, then either:

1. the domain is not public (which may not be what you want), or
2. the API Gateway is set up as Private and the VPC endpoint is not configured correctly.
3. or maybe something else


Hope that helps a bit. Let me know how it goes.

Best, Ilir

deepud26
New Contributor

Hello @ilir_nuredini ,

I'm trying the below way 

import requests
import json
 

headers = {
    "Authorization": f"Bearer {token}",
    "Content-Type": "application/json"
}

response = requests.get(API_URL, headers=headers)

if response.status_code == 200:
    data = response.json()
    print("data:", data)
else:
    print("Failed to get data:", response.status_code, response.text)

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

!nslookup api-dev.amazon.com
** server can't find api-dev.amazon.com: NXDOMAIN

This is a serverless setup that we are trying to create connectivity


Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now