I am trying to get notifications from Sentinel L1C SNS Topic in my AWS Lambda function, but it’s been weeks since I subscribed to the topic, and until now, I haven’t got any notifications. I just created a Lambda to be triggered by the SNS and log the message income. It’s like no messages have been sent to this topics. Is there something I might missing?
it seems that when an SNS is generated for a product, the corresponding tileInfo.json is not available on https://roda.sentinel-hub.com/sentinel-s2-l1c
Any idea about the delay between the SNS generation and the availability of the metadata on this website ?
some details :
I have attached a python lambda to the SNS.
The lambda is called - no problem.
In the lambda, I extract the metadata and call back an API on the server hosting my catalog (node.js based).
On the server, in the API, I process the new message and try to get from ttps://roda.sentinel-hub.com/sentinel-s2-l1c the corresponding tileInfo.json metadata file (I fallback to S3 using boto if it failed). Most of the times, this failed at the time the SNS is generated for both roda and S3. But it works after (I don’t exactly of much times after thus) for both.
The fact that it fails from roda makes sense if this site is updated using SNS to…
The fact it fails from S3 is more strange.
Finally, my last try is to delay the processing of the new tiles : In the API I register each new tile in a ‘tiles to process’ queue. This one is processed few hours after via a cron job.