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
Unable to access HLSS30.020 on aws s3
-
- Subject Matter Expert
- Posts: 71
- Joined: Tue Nov 12, 2019 4:02 pm America/New_York
- Been thanked: 3 times
-
- Posts: 7
- Joined: Fri Jul 29, 2022 3:29 pm America/New_York
Re: Unable to access HLSS30.020 on aws s3
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,
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,
-
- User Services
- Posts: 422
- Joined: Mon Sep 30, 2019 10:00 am America/New_York
- Has thanked: 31 times
- Been thanked: 8 times
- Contact:
Re: Unable to access HLSS30.020 on aws s3
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.
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.