Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why can't I find the region associated with a session? #406

Closed
garnaat opened this issue Dec 13, 2015 · 2 comments
Closed

Why can't I find the region associated with a session? #406

garnaat opened this issue Dec 13, 2015 · 2 comments
Labels
enhancement This issue requests an improvement to a current feature. feature-request This issue requests a feature.

Comments

@garnaat
Copy link
Member

garnaat commented Dec 13, 2015

If I create a session like this:

>>> import boto3
>>> session = boto3.Session(profile_name='foo', region_name='us-west-2')

the session object has a profile_name attribute:

>>> session.profile_name
'us-west-2'
>>>

But there is no public attribute to find the region_name associated with the session. Both profile_name and region_name are stored in the config so it seems like there should be a property for region_name just like the one for profile_name.

@kyleknap
Copy link
Contributor

Makes sense. Marking as feature request.

@kyleknap kyleknap added enhancement This issue requests an improvement to a current feature. feature-request This issue requests a feature. labels Dec 14, 2015
@jamesls
Copy link
Member

jamesls commented Dec 22, 2015

Fixed via #407 and #414

@jamesls jamesls closed this as completed Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue requests an improvement to a current feature. feature-request This issue requests a feature.
Projects
None yet
Development

No branches or pull requests

3 participants