infra.new logo

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

Module Name
Module Source
Public Registry
Custom Module
Requirements
S3 Origin Module
Custom Module
4 requirements
2

Terraform Module

Module Name
Module Source
Public Registry
Custom Module
Requirements
CloudFront with Lambda@Edge Module
Custom Module
4 requirements
3

Terraform Module

Module Name
Module Source
Public Registry
Custom Module
Requirements
Cloudflare Zone Module
Custom Module
4 requirements
4

Terraform Environment

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.