0

I need lambda function to send the image from S3 to multiple Raspberry pi devices. Whenever there is new version of the picture uploaded in s3, it should trigger the function. and send the uploaded images to Rpi

Rohit Bharati
  • 563
  • 1
  • 4
  • 5

1 Answers1

0

There are two ways to achieve it after setting Lambda on S3 trigger:

  • Download the file using aws sdk in the /tmp/ folder. Lambda allows 512 MB storage.
  • Use paramiko to transfer file/s to any number of Raspberry Pi servers.

OR

wget <presigned_url> -O /path/to/folder/

These solutions are based on python to give you an idea, yet you may find paramiko and remote script alternative libraries in other languages as well.

amsh
  • 3,097
  • 2
  • 12
  • 26