Repository navigation
Conversation
- DAAC s3:// assets are fetched with temporary credentials from maap.aws.earthdata_s3_credentials(); the endpoint, region and allowed buckets come from the collection's CMR DirectDistributionInformation (provider/short name/version parsed from the CMR-STAC collection link) - credentials and CMR lookups are cached per endpoint/collection - on any failure (no CMR info, creds error, AccessDenied, ...) the same file's https asset is used instead; an https asset already fetched via S3 is reused rather than downloaded twice - STAGE_IN_DIRECT_S3=false disables direct S3 - non-MAAP s3:// hrefs no longer go to download_granule (HTTP-only) Refs #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #25 (items 1 and 3; item 2, failing the job on required-asset errors, is not included).
Behavior
For each STAC asset with a non-MAAP
s3://href:DirectDistributionInformationof the item's collection (provider, short name and version are parsed from the CMR-STAC collection link, e.g..../stac/LAADS/collections/MYD06_L2_6.1).maap.aws.earthdata_s3_credentials(endpoint)(cached per endpoint, refreshed ~5 min before expiry) and download with boto3.s3://assets with no https sibling that fail are dropped with a logged error, as before.STAGE_IN_DIRECT_S3=falsedisables direct S3. Non-MAAPs3://hrefs no longer reachdownload_granule, which is HTTP-only (this removes theNo connection adapterserrors seen on UAT).Tested
MYD03_6.1andMYD06_L2_6.1(endpointhttps://data.laadsdaac.earthdatacloud.nasa.gov/s3credentials, bucketprod-lads).NOT tested (please verify on a UAT worker before relying on it)