From the course: AWS: Automation and Optimization

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Invoke Lambda functions

Invoke Lambda functions - Amazon Web Services (AWS) Tutorial

From the course: AWS: Automation and Optimization

Start my 1-month free trial

Invoke Lambda functions

- [Instructor] The core components of an application built on AWS Lambda are the Lambda function and the event source. The Lambda function is the code that processes events. For example, in the previous movie, we wrote a code to stop running EC2 instances. The event source is the AWS service, or a custom application, that publishes events. To understand this, think of a video hosting and processing company. Users user a mobile application to create and upload these videos. The application stores these in an Amazon S3 bucket. Amazon S3 is a supported AWS event source that can publish object-create events and invoke your Lambda function. The Lambda function can read the video object from the S3 bucket, process it by applying the necessary encoding, save it in another S3 bucket used to host all processed videos, and then share it with other users of the application. AWS Lambda can also pull for events. Think of a custom application that writes records to SQS Queue. SQS stand for Simple…

Contents