Commit c8ea710
committed
_utils: Make sure boto3's default session is used
* Currently `awswrangler` ensures that at least some boto3 Session is
used when it calls AWS resources. However, since it creates a
`boto3.Session()` when non-null boto3 Session is passed as a
parameter, it completely sidesteps the ability of the user to set
parameters to the boto3 session that gets used by default (via the
`boto3.setup_default_session` function).
* This commit ensures that the `ensure_session` function uses boto3's
default session (reachable via `boto3._get_default_session()`) which
then also allows `awswrangler` users to set default parameters of the
boto3 Session it uses by default via `boto3.setup_default_session()`.
Signed-off-by: mr.Shu <[email protected]>1 parent 4f962d5 commit c8ea710
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
0 commit comments