Accessing an s3Credential endpoint that's not officially in EarthAccess package #482
-
We're trying to test out using EarthAccess to get to a special bucket at ASF for some simulated data that is unlikely to ever end up in CMR. I couldn't find a way to pass the credential endpoint to EarthAccess, As an example, with direct code it can work:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@wildintellect can you tell me what you're trying to do with EarthAccess here that you can't or don't want to do directly? Psudo code of what you'd like to do even if it doesn't work would be helpful |
Beta Was this translation helpful? Give feedback.
-
Hi @wildintellect I think what you are looking for would be doable with earthaccess, ideally this would be the code: fs = earthaccess.get_s3fs_session(endpoint="https://nisar.asf.alaska.edu/s3credentials") which is basically a wrapper of the code you posted, the Auth class accepts custom endpoints for credentials but this has not been surfaced to the top level methods since all the results earthaccess deals with are coming from CMR. I tried testing the S3 crdential endpoint and ran into an SSL certificate issue with the subdomain. I think we could work on this and release have it ready for the next version, most likely before the end of the month. |
Beta Was this translation helpful? Give feedback.
Hi @wildintellect I think what you are looking for would be doable with earthaccess, ideally this would be the code:
which is basically a wrapper of the code you posted, the Auth class accepts custom endpoints for credentials but this has not been surfaced to the top level methods since all the results earthaccess deals with are coming from CMR.
I tried testing the S3 crdential endpoint and ran into an SSL certificate issue with the subdomain. I think we could work on this and release have it ready for the next version, most likely before the end of the month.