From the course: AWS Certified Security - Specialty (SCS-C03) Cert Prep

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Lambda@Edge

Lambda@Edge

This is a quick lesson on Lambda at Edge. Lambda at Edge allows you to run Node.js and Python Lambda functions to customize the content that CloudFront delivers. So it's executing these functions closer to the viewer. It can be run at several different points, and you've got to remember these for the exam. So you can run your Lambda functions after CloudFront receives a request from a viewer, that's the viewer request, before it forwards them on to the origin, the origin request, after CloudFront receives the response from the origin, known as the origin response, or before CloudFront forwards the response to the viewer, and that's known as the viewer response. So let's look graphically. We've got our CloudFront cache, we've got our S3 origin, and we've got our user. The user submits a request, That's known as the viewer request. And this is where you can process using a Lambda function. You've then got the origin request. And before that happens, you can also use Lambda. The response…

Contents