Slackbot
11/03/2023, 1:21 PMMarvin
11/03/2023, 1:22 PMBoto3.Session()
. Here's an example:
import awswrangler as wr
import boto3
my_session = boto3.Session(region_name="us-east-2")
AWS Data Wrangler relies on Boto3.Session()
to manage AWS credentials and configurations. It does not store any kind of state internally. Most AWS Data Wrangler functions receive the optional boto3_session
argument. If None
is received, the default boto3 Session will be used.
You can also overwrite a default configuration using the config object provided by AWS Data Wrangler. Here's how you can view all default configurations used by AWS Data Wrangler:
import awswrangler as wr
print(wr.config.to_pandas())
And here's how you can overwrite a default configuration:
wr.config.default_aws_region = 'us-west-2' # for example
Please make sure that you have already set the AWS credentials in your local machine.
For more detailed information, you can refer to these resources:
- How to Interact with AWS using AWS Data Wrangler
- How to Use SSL Verify with AWS Wrangler - Stack Overflow
- Sessions — AWS SDK for pandas 3.4.1 documentation