> ## Documentation Index
> Fetch the complete documentation index at: https://docs.springwinter.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate a PaaS application to your AWS account

> Plan a controlled migration from managed hosting to your AWS account. Inventory dependencies, copy data safely, verify behavior and retain a rollback path.

Move a supported application to SpringWinter by mapping each process and data dependency to an AWS resource, testing a separate deployment, and planning the data cutover. Do not delete the original service after the first successful page load. This guide is a migration procedure, not evidence that your application or data has already been migrated.

## Decide whether migration is appropriate

Use this path when customer-owned AWS is a requirement and the application fits the [compatibility reference](https://docs.springwinter.dev/reference/compatibility.md). Stay with the current host, or choose another platform, when required features do not map cleanly. Account ownership does not promise lower cost, no operational work, or a lossless import of a provider's settings.

You need source access, a reproducible build, authorization to export the data, a separate AWS deployment target, approved connection permissions and a rollback owner. Keep all test databases isolated. Never point local test commands at an existing database merely to check connectivity.

## Inventory before changing anything

Create a migration sheet with these rows. Record secret names and destination controls, not secret values.

| Component | Questions and mapping |
| - | - |
| Frontend | Static files or request-time server? Build command, output directory and browser-visible settings? |
| HTTP process | Start command, bind address, port, health endpoint and CPU/memory needs? |
| Worker | Queue protocol, retries, concurrency, shutdown, scheduling and required outbound access? |
| Database | Engine/version, extensions, collation, schema/migration state, size, connections, recovery objectives? |
| Files | Object store or filesystem? Names, metadata, permissions, URLs and retention? |
| Authentication | Provider, users, password portability, signing keys, callback URLs and sessions? |
| External services | Email, payments, webhooks, search, LLM APIs and region or network restrictions? |
| Operations | Domains, DNS, TLS, logs, alerts, backups, budgets and rollback procedure? |

### Check the source host's special behavior

* **Vercel:** distinguish a self-hostable Node/static build from framework or platform integrations. Test request-time rendering, caching, image processing, routes and provider services under the target runtime. [Next.js self-hosting](https://nextjs.org/docs/app/guides/self-hosting) is the framework reference; it does not establish automatic Vercel feature parity.
* **Railway:** replace Railway private hostnames and variable references. Treat volume contents and scheduled jobs as separate migration tasks. Its [services](https://docs.railway.com/services) and [volume documentation](https://docs.railway.com/volumes) define source behavior.
* **Render:** map private services, background workers and cron jobs deliberately. A SpringWinter worker has no incoming HTTP endpoint. A source persistent disk is not equivalent to SpringWinter task disk. See [Render service types](https://render.com/docs/service-types).
* **Fly.io:** inspect process groups, region placement and every volume. Fly volumes are local persistent storage and do not automatically replicate between Machines. SpringWinter task storage is temporary. See [Fly volume behavior](https://docs.fly.io/volumes/overview).
* **Heroku:** translate each relevant Procfile process and add-on. Dyno filesystem contents are ephemeral, but add-ons and external uploads may hold durable data. Review [Heroku runtime behavior](https://devcenter.heroku.com/articles/how-heroku-works).
* **Lovable/Bolt:** export/sync code and identify every managed backend separately. Moving a frontend does not transfer authentication, database policies, object storage, edge functions or model-provider accounts. See [Lovable hosting/ownership](https://docs.lovable.dev/tips-tricks/deployment-hosting-ownership) and [Bolt GitHub](https://support.bolt.new/integrations/git).
* **Manual AWS/Docker:** verify supported source and networking requirements. Do not import or mutate existing resources under a second controller. A Compose file is an inventory aid, not a SpringWinter deployment request.

Source behavior checked 2026-12-01. The actual app still needs review and tests.

## Build a separate target

1. Make the build reproducible from a reviewed commit with dependency locks. Run local tests with disposable dependencies.
2. Configure a static website for static output. Use a container web server for a supported HTTP runtime. Create separate supported workers where needed.
3. Put records in supported private SQL, compatible cache state in Valkey, and uploads in object storage. Do not use container disk as durable storage.
4. Connect customer AWS and GitHub through the documented authorization flows. Inspect current connection and resource state before creating anything.
5. Obtain an [AWS cost estimate](https://docs.springwinter.dev/guides/cost-estimation.md) for the target and the period where both systems will run.
6. Review the complete plan and approve provisioning before creating billable resources. Use the current [API contract](https://springwinter.dev/api/openapi.json) or dashboard; do not translate vendor settings into guessed API fields.

For runnable starting points, inspect the [v0.1.0 templates](https://github.com/SpringWinter-Research/templates/tree/v0.1.0). They are independently usable examples, not automated importers. Local/container validation does not establish an AWS deployment result.

## Plan data transfer and cutover

Choose the transfer procedure for the exact source and destination engine. Test restoration into a new disposable target first. Record row counts or checksums suitable for the application's consistency needs, extension compatibility and representative queries without exposing personal data in logs.

For production cutover, agree on acceptable write downtime, final export or replication, queue draining, upload reconciliation, webhooks and duplicate-side-effect prevention. Change auth callbacks and external allowlists before testing the new domain. Rehearse the rollback decision before changing DNS.

A DNS rollback only changes where requests go. It does not reverse writes already accepted by a new database. Avoid two independent writable copies unless the application has an explicit consistency design. A code rollback also does not undo a schema migration.

## Verify and retain a rollback path

Wait for each asynchronous deployment workflow to finish. Then test application health and a representative journey: sign in, read/write sample records, upload/read a sample file, process a job, and observe required external callbacks. Verify private data access, TLS and logs from the target workload. Check that no browser bundle contains backend secrets.

Keep the previous service and an approved recoverable backup until the cutover's acceptance period ends. Document who can restore, what data may be lost and when the decision must be made. A resource marked running is not proof that these application checks passed.

## Clean up only after acceptance

Obtain approval before deleting old resources, backups, add-ons or data. Stop duplicate jobs and webhook delivery first. Revoke unused access and rotate credentials if exposure occurred. Check both provider bills for retained disks, snapshots, registries, load balancers, databases, storage and domains. Cancellation of a platform subscription does not prove infrastructure was deleted.

See [when to use SpringWinter](https://docs.springwinter.dev/when-to-use-springwinter.md), [hosting choices](https://docs.springwinter.dev/comparisons/hosting-options.md), [private data security](https://docs.springwinter.dev/security/data.md), and [agent deployment guidance](https://springwinter.dev/agents/api.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.