title: boto3 sessions and aws_session_token management
body: <p>I am developing python software which deals with AWS SQS queues. It uses <code>boto3</code>, mostly <code>boto3.session.Session</code>.</p>
  
  <p>I have seen <a href="https://boto3.readthedocs.io/en/latest/reference/core/session.html" rel="noreferrer">here</a> that we can pass an <code>aws_session_token</code> to the <code>Session</code> constructor.</p>
  
  <p>When running my code outside of Amazon, I need to periodically refresh this <code>aws_session_token</code> since it is only valid for an hour. So I need to reinstantiate a <code>boto3.Session</code> on my own.</p>
  
  <p>I am just wondering how things work inside AWS. Do I need to manually refresh my sessions by getting a new <code>aws_session_token</code> through the environment? Or is my session valid "for ever"/is it handled internally so I don't have to refresh my AWS sessions?</p>
  
  <p>The documentation seems unclear to me.</p>