title: Secrets manager extremely slow in EC2s via awscli and boto3
body: <p>I'm writing a flask API in pycharm. When I run my code locally, requests using boto3 to get secrets from secrets manager take less than a second. However, when I put my code on an EC2, it takes about 3 minutes (tried in both t2.micro and m5.large).</p>
  
  <p>At first I thought it could be a Python issue, so I ran it in my EC2s through the awscli using:</p>
  
  <pre><code>aws secretsmanager get-secret-value --secret-id secretname
  </code></pre>
  
  <p>It sill took about 3 minutes. Why does this happen? Shouldn't this in theory be faster in an EC2 than in my local machine?</p>
  
  <p><strong>EDIT:</strong> This only happens when the EC2 is inside a VPC different than the default VPC.</p>