I`m trying to reach a service hosted in another AWS account through transit gateway. Databricks environment was created using Terraform, from the template available in the official documentation.
Placing a VM in Databricks` private subnets makes us able to access the service. However, any of the machines in Databricks cluster cannot reach it. Every time we get `connection refused` error when using netcat.
When testing, also created a new VM using Databricks AMI image and placed it in the same network as the cluster machines, and it can reach the service. But the cluster machines cannot. This custom VM can ping and nc Databricks machines, but the cluster machines get connection refused when trying to do the opposite way. And they are in the same subnet and same RG. RG rules are OK for internal traffic.
Need some help to figure it out.
Thank you!