From ba6f5d1be547da6b959b4723cffcd6ae7d14fe3e Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Thu, 19 Sep 2024 14:07:40 +0200 Subject: [PATCH] Simplify s3 setup in tutorial --- doc/source/tutorial.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/source/tutorial.rst b/doc/source/tutorial.rst index b5e0f8a..b134ff5 100644 --- a/doc/source/tutorial.rst +++ b/doc/source/tutorial.rst @@ -161,11 +161,10 @@ Here we will use the ``s3fs`` package to write to an S3 bucket. .. code-block:: python - from aitbotocore.session import AioSession import s3fs # custom-profile in .aws/credentials - s3 = s3fs.S3FileSystem(session=AioSession(profile="custom-profile"), + s3 = s3fs.S3FileSystem(profile="custom-profile", client_kwargs={"region_name": "af-south-1"}) # A path in a bucket store = s3fs.mapping.S3Map("bucket/scratch/test.zarr", s3=s3,