From 2accc802e1ec2e669a6394064abfb7359a399e1b Mon Sep 17 00:00:00 2001 From: "mmore500.login+git@gmail.com" Date: Sat, 8 May 2021 21:54:29 -0400 Subject: [PATCH] Allow get_control_t_distns without auth --- dishpylib/pyhelpers/get_control_t_distns.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dishpylib/pyhelpers/get_control_t_distns.py b/dishpylib/pyhelpers/get_control_t_distns.py index 43f339435d..4631b858f8 100644 --- a/dishpylib/pyhelpers/get_control_t_distns.py +++ b/dishpylib/pyhelpers/get_control_t_distns.py @@ -1,4 +1,5 @@ import boto3 +import botocore import functools import pandas as pd @@ -7,7 +8,13 @@ @functools.lru_cache def get_control_t_distns( bucket, endeavor, stint ): - s3_handle = boto3.resource('s3') + s3_handle = boto3.resource( + 's3', + region_name="us-east-2", + config=botocore.config.Config( + signature_version=botocore.UNSIGNED, + ), + ) bucket_handle = s3_handle.Bucket(bucket) control_competitions, = bucket_handle.objects.filter(