Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
feat(presigned-put): test accepts regions different than us-east-1 now
Browse files Browse the repository at this point in the history
  • Loading branch information
fczuardi committed Nov 10, 2023
1 parent d2153b3 commit fb8eabd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/boto3/presign.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
config = yaml.safe_load(file)

endpoint_url = config['remotes'][profile_name]['s3']['endpoint']
region = config['remotes'][profile_name]['s3']['region']

my_session = boto3.session.Session(profile_name=profile_name)
my_session = boto3.session.Session(profile_name=profile_name, region_name=region)
my_config = Config(
signature_version = 'v4',
)
Expand Down

0 comments on commit fb8eabd

Please sign in to comment.