From d07d4db062942b4efa760fb83b227366e69488e2 Mon Sep 17 00:00:00 2001 From: michdr Date: Thu, 12 Jun 2025 17:16:08 +0200 Subject: [PATCH] fix: cache regions for s3fs to work properly across regions --- mostlyai/sdk/_data/file/container/aws.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mostlyai/sdk/_data/file/container/aws.py b/mostlyai/sdk/_data/file/container/aws.py index e07e4b81..97f59683 100644 --- a/mostlyai/sdk/_data/file/container/aws.py +++ b/mostlyai/sdk/_data/file/container/aws.py @@ -92,6 +92,7 @@ def __init__( secret=self.secret_key, key=self.access_key, client_kwargs=client_kwargs, + cache_regions=True, ) self._boto_resource = boto_session.resource("s3", endpoint_url=self.endpoint_url, verify=self.ssl_verify) self._boto_client = boto_session.client("s3", endpoint_url=self.endpoint_url, verify=self.ssl_verify)