AWS Classroom Series – 17/Oct/2020

AWS Lambda

  • This is serverless and event-driven compute infrastructure.
  • It allows you to upload a piece of source code to execute against the event
  • Supported Languages
    • Java
    • Nodejs
    • C#
    • Python
    • Powershell
    • Ruby
    • Go

To deploy and maintain application

  • EC2 Instances
    • We choose OS
    • We install softwares required
    • We configure the platform
    • We deploy application
    • We patch OS updates & Software updates
    • We configure Auto Scaling to Scale out or in
    • We pay hourly bills
  • Elastic Beanstalk
    • We choose Platform
    • We deploy applications
    • We configure Autoscaling
    • We pay hourly bills
  • Lambda:
    • We deploy functions (small piece of code)
    • We pay bills in the unit 100 milliseconds only when the code is executed.

Creating a Lamba Function (Python)

  • Refer Here for the sample used in the class room
  • Lets create a lambda function which shutdown all the machines which have the tag

Lambda Concepts

  • Lambda function to execute needs some permissions which are configured using IAM Roles
  • Lambda function can be configured to execute within 1 to 900 seconds Preview

Next Steps

  • Configuring Triggers and destinations
  • Understanding Asynchronous & Synchronous execution of lambda fuctions (Invocation type)
  • Environmental Variables in Lambda

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin