Unable to access HLSS30.020 on aws s3

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
LP DAAC - afriesz
Subject Matter Expert
Subject Matter Expert
Posts: 71
Joined: Tue Nov 12, 2019 4:02 pm America/New_York
Answers: 2
Been thanked: 3 times

Re: Unable to access HLSS30.020 on aws s3

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

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

Filters:

olivierpfrancois
Posts: 7
Joined: Fri Jul 29, 2022 3:29 pm America/New_York
Answers: 0

Re: Unable to access HLSS30.020 on aws s3

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

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,

LP DAACx - dgolon
User Services
User Services
Posts: 422
Joined: Mon Sep 30, 2019 10:00 am America/New_York
Answers: 0
Has thanked: 31 times
Been thanked: 8 times
Contact:

Re: Unable to access HLSS30.020 on aws s3

by LP DAACx - dgolon » Wed Jul 10, 2024 2:00 pm America/New_York

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.
Subscribe to the LP DAAC listserv by sending a blank email to lpdaac-join@lists.nasa.gov.

Sign up for the Landsat listserv to receive the most up to date information about Landsat data: https://public.govdelivery.com/accounts/USDOIGS/subscriber/new#tab1.

Post Reply