Skip to content

Requirement for configure_s3_access is inconsistent between rio and default drivers #2081

@alexgleith

Description

@alexgleith

If you load data using the default driver, you must use configure_s3_access from the datacube libary, i.e.,:

from datacube.utils.aws import configure_s3_access

configure_s3_access(requester_pays=True)
dc = Datacube() 

dc.load(
    ...
)
...

Whereas if you use the rio driver, then it needs to be imported from odc.stac.configure_s3_access.

from odc.stac import configure_s3_access

configure_s3_access(requester_pays=True)
dc = Datacube() 

dc.load(
    ...
    driver="rio"
)
...

and this is rather unintuitive!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions