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