title: Why does Lambda configured within a VPC, same as ec2 cannot send an api request to a nomad client within the instance?
body: <p>When I send a post API request to a Nomad client inside an ec2 instance within the same VPC, I get a connection timeout error (<em>Max retries exceeded with url: /v1/jobs (Caused by ConnectTimeoutError(, 'Connection to dns_name.net timed out. (connect timeout=5)'))</em>). </p>
  
  <p>Even though I configured lambda according to <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html</a> but it still does not seem to reach the Nomad client.</p>
  
  <p>I already checked with the Nat gateway configuration, that seems to work fine. </p>