title: AWS SageMaker (with internet disabled) unable to connect to STS
body: <p>I am unable to perform the simple action:</p>
  <pre><code>import sagemaker
  sess = sagemaker.Session()
  role = sagemaker.get_execution_role()
  </code></pre>
  <p>because my notebook instance is not connected to the internet. I have an STS endpoint interface in the same subnet as my notebook instance but I thought the sagemaker API is using the global endpoint. I actually get the following error message after a while:</p>
  <pre><code>ConnectTimeoutError: Connect timeout on endpoint URL: &quot;https://sts.us-east-1.amazonaws.com/&quot;
  </code></pre>
  <p>How do I fix this? Or does one need to update the sagemaker module?</p>