Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Transition a SaaS from AWS to DigitalOcean

Overview

Work through a move of a small SaaS from AWS to DigitalOcean with Claude Code: map the current setup, write the new infrastructure as code, rehearse the database copy, and switch DNS only after you approve each step.

Problem or Objective

More in Coding and Code Review

AI Agents and Models

Tools and Integrations

Tools
Claude Code · AWS · DigitalOcean · Terraform · PostgreSQL
Prerequisites
Claude Code, accounts on both cloud providers with CLI access, an infrastructure-as-code tool and a staging environment for rehearsing the database copy.

How It Works

Open Claude Code in the repository that holds your app and any infrastructure code. First ask it to inventory what runs on AWS today (compute, database, storage, queues, environment variables, DNS records) from the code and from read-only CLI output you provide, and to write a migration plan with a rollback for each step. Have it write the DigitalOcean setup as infrastructure code and run only a plan or dry run, which you review and apply yourself. Next, ask it to script a database dump and restore, then rehearse it into a staging database and compare row counts and a few key queries. Lower the DNS TTL in advance. On cutover day, put the app in read-only or maintenance mode, run the final copy, check the new stack with smoke tests, and change the DNS records yourself, keeping the AWS stack running until traffic has settled.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up Claude Code.
  2. Connect the toolsConnect the tools this workflow relies on: Claude Code, AWS, DigitalOcean, Terraform, PostgreSQL.
  3. Check the prerequisitesClaude Code, accounts on both cloud providers with CLI access, an infrastructure-as-code tool and a staging environment for rehearsing the database copy.
  4. Gather your detailsCollect what the prompt asks for: Your app, File with read-only CLI output, Infrastructure-as-code tool, Production database.
  5. Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.

Practical Starter Prompt: Plan a cloud move step by step

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
We are moving [Your app] from AWS to DigitalOcean. Using this repository and the read-only inventory in [File with read-only CLI output], list every component we run today and its DigitalOcean equivalent, then write a step-by-step migration plan with a check and a rollback for each step. Write the new infrastructure in [Infrastructure-as-code tool] and run only a plan or dry run. Write a script that copies [Production database] to a staging database and compares row counts. Do not apply infrastructure changes, touch production data or edit DNS; stop after each step and wait for my approval.

Approve each step before the next. You apply the infrastructure plan, run the final data copy in a maintenance window and change DNS yourself, keeping the AWS stack until traffic has settled.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. The Claude Code docs describe an agentic coding tool that reads your codebase, edits files and runs commands, can be piped logs or run in CI, and can reach databases and APIs through MCP servers. They do not mention cloud migrations, so the plan, scripts and checks are only as good as your review. How your cloud providers, database and DNS host behave during the move was not verified here.

Limitations and Considerations

Keep production credentials out of the session where you can, give Claude Code read-only cloud access for the inventory, and apply infrastructure changes, run the final copy and edit DNS yourself. Check your cloud provider's documentation for database export limits and data transfer charges before the move, and keep backups of both databases. A maintenance window is the safest way to avoid writes being lost between the final copy and the DNS change. Results depend on your setup and were not independently reproduced by Top 200 Repos.

GitHub Repositories

AI Agent Repository

Source code of the agent that does the work.

Official Website

The official site of the main tool or project in this use case.

Visit Website (opens in a new tab)code.claude.com

Related Videos

About anthropics/claude-code

About anthropics/claude-code

Independent creators. Listing a video implies no endorsement, sponsorship or partnership.

Sources

  1. Overview - Claude Code Docs (opens in a new tab)

    Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC

    What this source supports
    • Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands and integrates with your development tools.
    • Claude Code is composable and follows the Unix philosophy: you can pipe logs into it, run it in CI or chain it with other tools.
  2. Connect Claude Code to tools via MCP - Claude Code Docs (opens in a new tab)

    Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 12:10 UTC

    What this source supports
    • MCP servers give Claude Code access to your tools, databases and APIs.
    • An example request queries a PostgreSQL database through a connected server.
Report a problem

More with Claude Code

Planned, not done

Create Custom Store Tools Instead of Paying for Subscriptions

Use Claude Code to write small in-house tools for an online shop, such as a reply helper for support mail or a margin report, as an alternative to paying for separate apps, with testing before you rely on them.

code.claude.comanthropics/claude-code
Reported by source

Answer technical questions by letting async agents run experiments

Simon Willison sends research questions to cloud coding agents such as Claude Code for web and Codex Cloud, which write and run experiments in a dedicated repo and open a PR.

simonwillison.net · 6 Nov 2025anthropics/claude-code, openai/codex
Planned, not done

Structure Repeated Browser Research Into Evidence Tables

Give Claude Code the open-source Browser Use CLI with a local browser, ask the same research questions across a short list of pages, and keep every answer as a sourced table row.

github.comanthropics/claude-code, browser-use/browser-use

View all: Claude Code