diff --git a/Tools/dea_tools/dask.py b/Tools/dea_tools/dask.py index a5e2fe665..eb23ebe7e 100644 --- a/Tools/dea_tools/dask.py +++ b/Tools/dea_tools/dask.py @@ -106,9 +106,12 @@ def create_local_dask_cluster( if configure_rio: try: from datacube.utils.aws import configure_s3_access + configure_s3_access(cloud_defaults=True, aws_unsigned=True, client=client) + except ImportError: from odc.stac import configure_s3_access - configure_s3_access(cloud_defaults=True, aws_unsigned=True, client=client) + # Note that odc.stac version does not accept client param + configure_s3_access(cloud_defaults=True, aws_unsigned=True) # Show the dask cluster settings if display_client: