🌎

CloudFront

Owner
Verification
Tags
Last edited time

AWS content delivery network (CDN) improves reads , Shield WAF, Route 53 & HTTPs integration

Origins:

👹
Can set Origin Groups for Failover (one primary )
🥷🏻
Geo Restriction - Can set allow or block list of country list from a 3rd party database

Security

👻
Add a public CloudFront IP to your ALB Security group and create a signedURL

CloudFront Functions

Support Java only code to read header change requests/responses, <1ms runtime, 2mb memory

use cases:

🏄🏻‍♂️
Lambda Functions are deployed at the Regional Cache - CloudFront Functions are deployed at the edge location

Lambda@Edge

Supports NodeJS or Python , VM isolation based, 30 sec runtime 10gb memory

Use cases:

Longer execution with more memory with network and filesystem access with 3rd party integration based on User-Agent

- used to change CloudFront requests and responses:

Viewer Request - after CloudFront receives a request from a viewer

Origin Request - before CloudFront forwards the request to the origin

Origin Response - after CloudFront receives the response from the origin

Viewer Response - before CloudFront forwards the response to the viewer