boto3 session as argument to connect()
See original GitHub issueCurrently, you can provide arguments that are used to create a boto3 session, but you can’t just provide your own session. That limits the ability, for example, to use aws_sso_lib.get_boto3_session()
to allow a script that knows what account and AWS SSO role it should be using to do that directly, rather than relying on it being configured in a profile.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Session reference — Boto3 Docs 1.26.33 documentation
Session ) -- Use this Botocore session instead of creating a new default one. ... You can get a list of available services...
Read more >boto3 Sessions, and Why You Should Use Them | by Ben Kehoe
So the function boto3.client() is really just a proxy for the boto3. ... The STS client is created on a session created with...
Read more >How to specify credentials when connecting to boto3 S3?
Then use that session to get an S3 resource: ... There are numerous ways to store credentials while still using boto3.resource().
Read more >How to create an AWS session using Boto3 library in Python?
Step 3 − Import the Boto3 library. Step 4 − If creating the session with default credential, use Session() with no parameter.
Read more >How to use the boto3.session.Session function in boto3 - Snyk
def find_nonvpc_domains(): domains = [] enabled_regions = set(boto3.session.Session().get_available_regions('es')) if os.environ.get('REGIONS'): ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome! I added one comment on type hints
It seems to be a good improvement. It looks easy to implement, so I’ll try to implement it over the weekend.