Archive for June, 2022

Adding a cron expression in Lambda, running after every 10 mins

Below cron expression triggers lambda in each 10 mins. you can check result in next 10 event trigger timings..

Packing and deploy Lambda in windows based env with python dependencies in layers

In order to pack and deploy a lambda code with python dependencies, follow below steps:

  1. Pack lambda code in a .zip file
  2. Pack all dependencies in a .zip file, remember it should contain a dir with name Python and all files will go inside this dir.
  3. Go to aws console, create a lambda and upload lambda .zip
  4. Go to layers section, add a layer and upload dependencies zip
  5. Test your lambda