Skip to content

Download forbidden when accessing S2 data on AWS #15

@yellowcap

Description

@yellowcap

AWS has changed the bucket policy of the S2 L1C bucket to be a requester pays bucket. So the product download does not work without authentication anymore. See https://registry.opendata.aws/sentinel-2/

As an example, I get the error message below. Is there a way to make authenticated calls to S3 using AWSDownload?

$ java -jar ProductDownload.jar --sensor S2 --aws --out /tmp/products/ --store AWS --limit 1 --tiles 29SPC --start 2018-08-05 --end 2018-08-05

2018-09-18 10:07:20	[INFO]		Download will be attempted from AWS
2018-09-18 10:07:20	[INFO]		Search will be attempted on AWS
2018-09-18 10:07:20	[INFO]		The request was not successful. Reason: Forbidden
java.lang.NullPointerException
	at ro.cs.products.sentinel2.amazon.ResultParser.parse(ResultParser.java:40)
	at ro.cs.products.sentinel2.amazon.AmazonSearch.executeImpl(AmazonSearch.java:96)
	at ro.cs.products.base.AbstractSearch.execute(AbstractSearch.java:150)
	at ro.cs.products.Executor.execute(Executor.java:432)
	at ro.cs.products.Executor.main(Executor.java:109)
Exception in thread "main" java.lang.NullPointerException
	at ro.cs.products.sentinel2.amazon.AmazonSearch.executeImpl(AmazonSearch.java:97)
	at ro.cs.products.base.AbstractSearch.execute(AbstractSearch.java:150)
	at ro.cs.products.Executor.execute(Executor.java:432)
	at ro.cs.products.Executor.main(Executor.java:109)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions