This message was deleted.
# ask-marvin
s
This message was deleted.
m
To use AWS credentials with AWS Data Wrangler (awswrangler), you need to work with Boto3, particularly with
Boto3.Session()
. Here's an example:
Copy code
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:
Copy code
import awswrangler as wr
print(wr.config.to_pandas())
And here's how you can overwrite a default configuration:
Copy code
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