title: AWS Lambda cannot reach internal servers from within VPC
body: <p>I have a lambda which is attempting to make a REST call to an on-prem server outside of AWS.  We have the lambda running from a VPC which has a VPN connection to our local resources.  The same rest call runs successfully from EC2 with the VPC but the lambda request hangs.  The security groups are open.   Any ideas how to debug this?</p>
  
  <p>Here is the bulk of the lambda</p>
  
  <pre><code>def lambda_handler(event, context):
      config = configparser.ConfigParser()
      config.read('config')
  
      pattern = re.compile(".*"+config['DEFAULT']['my-pattern'])
      logger.info(event['Records'])
      sns_json = event['Records'][0]['Sns']
      sns_message = json.loads(sns_json['Message'])
      logger.info(sns_message['Records'][0]['s3'])
      s3_object = sns_message['Records'][0]['s3']
      new_file_name = s3_object['object']['key']
      bucket = s3_object['bucket']['name']
      if pattern.match(new_file_name):
          new_json = {"text": "New file (" + new_file_name + ") added to the bucket. " + bucket,
                     "title": config['DEFAULT']['default_message_title']}
          webhook_post = requests.get("http://some-ip:4500/")
          logger.info("Webhook Post Status: " + str(webhook_post.status_code) + str(webhook_post))
          logger.info("Skip teams webhook");
          outgoing_message_dict = {
              's3Bucket': bucket,
              'somefile': new_file_name
          }
          return outgoing_message_dict
  </code></pre>
  
  <p>I don't receive any errors from the request, it just hangs until my lambda times-out.</p>