Skip to content
Go back

Migrating to Cloudflare Pages: One Prompt, Zero Manual Work

9 min read

We migrated complete website infrastructure from Amazon Route53 + GitHub Pages to Cloudflare in 2 hours, during business hours. This included hosting, DNS, and CI/CD. Zero downtime. Zero manual commands.

The entire migration: One prompt. Then review and approve AI-proposed changes.

Why this matters for executives: DNS migrations traditionally require specialized DevOps knowledge, extended maintenance windows, and carry significant risk. A single misconfigured record can break email, take down services, or disrupt business operations for hours. This approach eliminates that risk through programmatic validation and automation.

The only manual step: Creating a Cloudflare API token.

Table of contents

Contents

The Starting Point

Infrastructure:

Critical services:

The Goal

Migrate everything to Cloudflare:

Why This Matters for Your Business

The traditional challenge:

DNS migrations CAN be done with zero downtime, but they require extensive planning and careful execution. One misconfigured MX record means email down for hours—imagine missing customer orders, support tickets, or sales inquiries during your peak season.

The difference with AI assistance:

Same zero-downtime outcome, but with programmatic validation instead of manual checklists. Business hours execution becomes feasible because pre-validation eliminates guesswork. Teams without specialized DevOps expertise can execute complex migrations confidently.

Strategic value:

Infrastructure changes shift from high-stress, weekend events to business-hours execution with automated validation—still requiring experienced engineers to evaluate proposals, but with dramatically reduced risk and time investment. Preview deployments enable stakeholder review before release.

The transformation: From possible-but-stressful to routine-and-confident.

The Starting Prompt

What we told Goose (open-source AI assistant):

I want to migrate from GitHub Pages to Cloudflare Pages. The domain 
clouatre.ca is registered at Squarespace. I need zero downtime - email 
and Google Workspace cannot break. Use a risk-adverse approach.Initial_Prompt

The entire migration was guided by this single initial prompt - Goose handled discovery, planning, and execution

We didn’t need to specify:

Goose handled the discovery and analysis.

What made this possible:

Critical: We reviewed every decision. The AI proposed, we approved. The combination of automation + human judgment enabled confidence.

Migration workflow diagram showing approval gates and validation steps Figure 1: AI-assisted migration workflow with two human approval gates ensuring governance and confidence

What Got Automated

Goose handled five critical phases:

Discovery & Cleanup

Pre-Migration Validation

CI/CD Reconfiguration

Governance Trail

Preview Infrastructure

The Only Manual Step

Creating a Cloudflare API token (2 minutes):

  1. Cloudflare dashboard → API Tokens
  2. Create token with Pages permissions
  3. Store in GitHub secrets

Everything else: automated.

Infrastructure comparison showing before and after architecture Figure 2: Infrastructure transformation - from fragmented AWS/GitHub setup to unified Cloudflare platform

Results

Traditional manual DNS migrations—planning, exporting records, importing, testing, monitoring propagation—typically require 4-6 hours of focused work and weekend execution windows to minimize business risk.

MetricBeforeAfterBusiness Impact
DNS Resolution20-30ms10-15ms50% faster global access
Deploy Time5-8 min38 sec88% reduction - 10x faster iteration
Platform CostRoute53: $12/yearCloudflare: FreeCost-neutral migration
Preview DeploymentsNonePer PRCatch issues before production
Migration WindowWeekend (risk mitigation)2 hours, business hoursEliminates deployment stress

Table 1: Before and after metrics - Complete migration (DNS + Hosting + CI/CD) completed in 2 hours, zero downtime, zero manual commands

Business Impact

What this approach enables:

Who benefits:

Key Lessons

1. Goose Handles Implementation Details

You still need to understand what you’re migrating, but you don’t need to remember:

Goose discovered our infrastructure (Route53), analyzed the records, and executed the migration. We provided the goals and constraints, reviewed the approach, and approved changes.

Value: Reduces specialized knowledge requirement, eliminates manual typos, compresses migration timeline from 4-6 hours (planning + execution + validation) to 2 hours (review + approval).

2. Pre-Validation Eliminates Risk

How validation worked:

Goose tested all DNS records against Cloudflare’s nameservers before we switched. This included email servers, Google Workspace records, and SSL validation.

The process:

  1. Query Cloudflare nameservers for each record type
  2. Verify MX records (all 5 email servers)
  3. Verify TXT records (SPF, DKIM, DMARC)
  4. Verify CNAME records (Google Workspace services)
  5. Generate validation report

Business outcome: We knew email, Google Workspace, and website would work before changing nameservers. Zero guessing.

3. Automate Record Migration

20+ DNS records, each with specific formats, priorities, TTLs. Manual copying guarantees typos.

Goose used APIs for accuracy:

Result: Zero typos. Zero manual record editing.

4. Preview Deployments Change Everything

The ability to review changes before production delivers multiple benefits.

Impact areas:

For technical leaders: Preview deployments shift risk from production to staging, enabling confident releases.

5. The Paradigm Shift: From Careful Planning to Confident Execution

Traditional DNS migration approach:

AI-assisted migration approach:

The transformation: From “plan exhaustively and execute carefully” to “validate programmatically and execute confidently.”

We knew every record worked before switching. No deployment anxiety, no weekend stress, no contingency planning—just confidence through programmatic validation.

The proof: This blog post was reviewed at a preview URL before going live—using the same automation we’re describing. The system documents itself.

When This Approach Applies

Ideal for:

Requirements:

Trade-offs:

Not suitable for:

Return on Investment

Time savings compound quickly:

Risk avoidance value:

Platform economics:

Cloudflare Pages free tier (500 builds/month, unlimited bandwidth) serves most businesses. High-traffic sites may need paid plans ($20-$200/month), but deployment speed gains alone justify the cost through developer productivity.

The real ROI: Developer time back for feature work, not infrastructure babysitting.


Want to try this approach?


About Hugues Clouâtre

Technology leadership, AI workflows, and cloud architecture insights from a world-class executive leader with expertise in AWS, Oracle, and digital transformation.


Next Post
AI-Assisted Development: From Implementation to Judgment

Related Posts