c03l20 lambda@edge edited - amazon web services...confirm deploy to lambda@edge i acknowledge that...

7
Lambda@Edge Brock Tubre TECHNICAL INSTRUCTOR

Upload: others

Post on 03-Jan-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: C03L20 Lambda@Edge edited - Amazon Web Services...Confirm deploy to Lambda@Edge I acknowledge that on deploy a new version of this function will be published with the above trigger

Lambda@EdgeBrock TubreTECHNICAL INSTRUCTOR

Page 2: C03L20 Lambda@Edge edited - Amazon Web Services...Confirm deploy to Lambda@Edge I acknowledge that on deploy a new version of this function will be published with the above trigger

CloudFront and Lambda@Edge

USA User

Edge LocationsDistributionOrigin

Web

S3 bucket

EC2 instance

Custom server

Elastic Load Balancer

LAMBDA@EDGE

Page 3: C03L20 Lambda@Edge edited - Amazon Web Services...Confirm deploy to Lambda@Edge I acknowledge that on deploy a new version of this function will be published with the above trigger

Deploying Lambda@EdgeLAMBDA@EDGE

Page 4: C03L20 Lambda@Edge edited - Amazon Web Services...Confirm deploy to Lambda@Edge I acknowledge that on deploy a new version of this function will be published with the above trigger

Lambda@Edge ConfigurationsLAMBDA@EDGE

Page 5: C03L20 Lambda@Edge edited - Amazon Web Services...Confirm deploy to Lambda@Edge I acknowledge that on deploy a new version of this function will be published with the above trigger

Lambda@Edge ConfigurationsLAMBDA@EDGE

Page 6: C03L20 Lambda@Edge edited - Amazon Web Services...Confirm deploy to Lambda@Edge I acknowledge that on deploy a new version of this function will be published with the above trigger

Cached content

Lambda@Edge Event TriggersLAMBDA@EDGE

UserS3 bucket

Viewer request Origin request

Viewer response Origin response

Page 7: C03L20 Lambda@Edge edited - Amazon Web Services...Confirm deploy to Lambda@Edge I acknowledge that on deploy a new version of this function will be published with the above trigger

Use Cases for Lambda@EdgeLAMBDA@EDGE

Use Lambda to inspect cookies and rewrite URLs to see different versions of a site for A/B testing.

A/B Testing1

Customize responses when viewer request or origin request events occur.

Generate HTTP Responses2

Control access to your content before CloudFront forwards request to the origin.

Header Inspection3

Lambda can add, drop, or modify headers, and rewrite URL paths so that CloudFront returns different objects.

Header Modification4