Page 2 of 2

Re: Unable to access HLSS30.020 on aws s3

Posted: Fri Jun 09, 2023 4:55 pm America/New_York
by LP DAAC - afriesz
Hey All,

For those having issues with boto3 in Python when trying to download from and list objects in S3, please make sure you check the following:
1. Make sure you are working from an cloud compute instance running in AWS us-west-2
2. Make sure your credentials are not expired. Temporary S3 credentials are only valid for 1 hour.
3. Make sure to include the "Prefix" option in the download and list objects methods from boto3. Please refer to the following resources: https://github.com/nasa/LPDAAC-Data-Resources/blob/main/python/how-tos/Earthdata_Cloud__Download_file_from_S3.ipynb & https://github.com/nasa/LPDAAC-Data-Resources/blob/main/python/how-tos/Earthdata_Cloud__List_bucket_objects.ipynb

Re: Unable to access HLSS30.020 on aws s3

Posted: Mon Jul 08, 2024 9:51 am America/New_York
by olivierpfrancois
Hi,

Running the code on https://github.com/nasa/LPDAAC-Data-Resources/blob/main/python/how-tos/Earthdata_Cloud__List_bucket_objects.ipynb and following the thread here, I get an access Denied for listing Objects.

I am running the code from Europe, but it should not matter when specifying the AWS region in the boto3 session?

Is there another common reason why running the example in the notebook leads to an access denied response?

Thank you for any help,

Re: Unable to access HLSS30.020 on aws s3

Posted: Wed Jul 10, 2024 2:00 pm America/New_York
by LP DAAC-EDL - dgolon
Hi @olivierpfrancois It should not matter as long as you are running your environment in us-west-2. Could you please confirm that you are? It has to be in there to work properly.