-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set Environment Variables in All DEA Sandboxes #121
Comments
So this didn't help. I have confirmed that GDAL performs minimal number of requests with those settings, but I suspect either GDAL or rasterio is trying to obtain IAM credentials despite unsigned configuration ( from datacube.utils.aws import configure_s3_access
configure_s3_access(aws_unsigned=True, cloud_defaults=True) calling above does make a difference even though the same configuration is already supplied via environment variables in the sandbox. |
import logging
logger = logging.getLogger('botocore')
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler()) # Writes to console Every file open then causes this logging output:
One work around is to inject fake credentials via environment variables, this would make credential acquisition quick, as botocore will not go looking for STS. So adding something like:
feels dirty but should work. |
Is your feature request related to a problem? Please describe.
Datacube load is slow for some products, like the ls8 geomedian.
Describe the solution you'd like
Setting these environment variables makes it faster:
Describe alternatives you've considered
Adding
__init__.py
files in the notebook environment.Additional context
n/a
The text was updated successfully, but these errors were encountered: