How to get the region of the current user from boto?
<p>Problem:</p>

<p>I'm trying to get the region of the authenticated user from boto3.</p>

<p>Use case:</p>

<p>I'm working on adding cache to <a href="https://github.com/pmazurek/aws-fuzzy-finder" rel="noreferrer">https://github.com/pmazurek/aws-fuzzy-finder</a>. I would prefer to cache the result on <em>per-region</em> basis.</p>

<p>This package uses boto to get user authentication data (keys and the region). The problem is the region is never passed explicitly by the user, its being taken from one of the many murky places that boto reads so I don't really have a way of getting it. </p>

<p>I have tried searching through boto3 api and googling, but couldn't find anything like a <code>get_region</code> or <code>get_user_data</code> method. Is it possible?</p>