diff --git a/baseplate/sidecars/live_data_watcher.py b/baseplate/sidecars/live_data_watcher.py index 781f3dfeb..a929f1b0e 100644 --- a/baseplate/sidecars/live_data_watcher.py +++ b/baseplate/sidecars/live_data_watcher.py @@ -144,14 +144,17 @@ def _load_from_s3(data: bytes) -> bytes: # resource is public. In other words, this means that a given service cannot access # a public resource belonging to another cluster/AWS account unless the request credentials # are unsigned. + + # Access S3 with 10 max retries enabled: s3_client = boto3.client( "s3", - config=Config(signature_version=UNSIGNED), + config=Config(signature_version=UNSIGNED, retries={"total_max_attempts": 10}), region_name=region_name, ) else: s3_client = boto3.client( "s3", + config=Config(retries={"total_max_attempts": 10}), region_name=region_name, )