Skip to main content

I am trying to access inventory via lambda using python. my problem is that when generating the script I get the following error: “when calling the GetObject operation: The specified key does not exist”.

the bucket and the nme key I use are:


*inventory_bucket = 'sentinel-inventory'*

  • key = 'sentinel-inventory/sentinel-s2-l1c/sentinel-s2-l1c-inventory/2021-11-09T00-00Z/manifest.json'*

I would like to know if I am using the wrong key or why it does not work for me in this case.

Hello, I think you actually have two problems here. The first is the key should not contain the bucket as well, so you can drop the sentinel-inventory in the key. Also, note the actual datetime you should be using is 2021-11-09T01-00Z. Those two items should resolve your problems I think.


Thank you very much, it works fine now!


Reply