Basics

  • Lambda is Function As a Service (FAAS)
  • Functions use supported runtimes
  • Code is executed within runtime environment
  • The environment is allocated memory which indirectly allocates CPU. Direct CPU allocation is not allowed
  • Billed for time the function runs
  • Supported runtime environments include Python,Ruby,Java,Go,C#,nodejs
  • Custom runtime environments can be deployed by users using layers
  • Lambda functions are stateless by default & is run inside a new runtime environment everytime its invoked
  • One can allocate 128MB to 10240MB memory to a lambda
  • While one can not directly allocate a CPU, every 1769 MB memory gives 1 vCPU
  • 512MB of disc storage is allocated by default available as /tmp in the runtime environment
  • One can allocate upto 10240 MB of /tmp
  • Lambda functions can run upto 900 seconds. Step functons can be used for extended time
  • Security is controlled by execution roles which are IAM roles associated with Lambda