ExitAWS Lambda: request processing with Lambda@Edge1 / 9
Explanation

Separate the source Region from execution

How Lambda@Edge execution locations, CloudFront request lifecycle triggers, and deployment restrictions determine where edge processing can run. · advanced

Lambda@Edge runs Lambda code at CloudFront lifecycle events. You create the source function in us-east-1, publish a numbered version, and associate that version with a distribution's cache behavior and event type. AWS replicates it to managed execution locations; the source Region is not where every request executes.

Lambda@Edge executes at regional edge locations, not at every viewer-facing point of presence. CloudFront determines the execution location; you do not select replica Regions or subnets. The diagram separates deployment from a cache-miss request whose origin-request function returns a modified request.

CloudFront owns this HTTP cache lifecycle. API Gateway provides API routing, while Global Accelerator provides network routing; neither replaces this distribution and its cache triggers. The hook uses a Lambda@Edge association, not an EC2 instance or a Fargate task.

US East (N. Virginia) — us-east-1
AWS-managed regional edge execution
Origin Region — independent of function source
Replicated versionViewer requestOrigin-request eventModified requestOrigin requestOrigin responseViewer response
AWS LambdaPublished numbered version
AWS LambdaLambda@Edge origin-request replica
UsersViewer
Amazon CloudFrontDistribution and cache lookup
Amazon S3 bucketS3 origin

1 / 7 The deployment source is a published, numbered Lambda version in us-east-1.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.