Cloudflare CDN with AWS S3 and Lambda@Edge
Deploy a global CDN with Cloudflare, S3 origin, and edge compute functions
Blueprint Steps
Expand the steps below to customize
1
Terraform Module
S3 Origin Module
Custom Module4 requirements
4 requirements
Module Name
Module Source
Public Registry
Custom Module
Requirements
S3 Origin Module
Custom Module
4 requirements
2
Terraform Module
CloudFront with Lambda@Edge Module
Custom Module4 requirements
4 requirements
Module Name
Module Source
Public Registry
Custom Module
Requirements
CloudFront with Lambda@Edge Module
Custom Module
4 requirements
3
Terraform Module
Cloudflare Zone Module
Custom Module4 requirements
4 requirements
Module Name
Module Source
Public Registry
Custom Module
Requirements
Cloudflare Zone Module
Custom Module
4 requirements
4
Terraform Environment
CDN Infrastructure
small scales3 backend
small scale
s3 backend
Environment Name
Scale
Region
State Backend
Requirements
CDN Infrastructure
small scale
s3 backend
Attach Source Code (Optional)
Blueprint Overview
Cost
$5-30/month
Setup Time
2-4 minutes
Technologies
Cloudflare
S3
Lambda@Edge
CloudFront
Route 53
Terraform
What You'll Build
This blueprint creates a high-performance global CDN using Cloudflare for edge caching and DDoS protection, AWS S3 for origin storage, and Lambda@Edge for request/response manipulation at the edge. Includes custom domain configuration, SSL certificates, cache rules, and edge functions for image optimization, A/B testing, or authentication.