How to migrate one AWS App Runner service without moving your database
Run a stateless App Runner API and Gregale side by side, check exact responses, then move a test client with a clear route back.
You can move one stateless HTTP service from AWS App Runner to Gregale without moving its database. Run both services at the same time, check that the new endpoint behaves the same way, and switch a test client before moving any real traffic.
Get the runnable example on GitHub.
AWS stopped accepting new App Runner customers on April 30, 2026. Existing customers can still run and create services. There is no shutdown deadline in that announcement. If your service depends on a private VPC connector, a private endpoint, an AWS instance role, or IAM-based access to a database, start with AWS's ECS Express Mode migration guide. Copying a container to another platform does not reproduce those AWS permissions or network paths.
1. Pick a service you can run alongside the original
Start with a stateless API that listens on one HTTP port, keeps durable state outside the container, and can use a separate test configuration. In App Runner, note the deployed source revision or image digest, the port and health check, the environment variable names, and how the service reaches its dependencies. Don't put their values in a migration note or in Git.
| App Runner setting | What to check on Gregale |
|---|---|
| Source repository and start command | Build the same revision from a Dockerfile. If App Runner builds your source for you, capture how it installs and starts the app first. |
| ECR image | A pinned Linux/amd64 image is another option. Check container compatibility and registry credentials first; do not make a private image public. |
| HTTP port and health check | Bind to 0.0.0.0 and use the serving port. Configure an actual readiness path such as /healthz. |
| IAM, VPC and data | Treat connectivity and credentials as separate work. If the database stays in AWS, prove TLS, access and latency from the new service using a test credential. Don't expose a private database to make the move work. |
Download the demo to try the workflow without a database. It's a small Node.js catalog API with a Dockerfile and a smoke test. For an existing App Runner account, deploy the demo image only to a disposable service using App Runner's image-based setup, HTTP port 8080, and HTTP health path /healthz. Readers without App Runner access can run one local copy instead; this tests the application contract, not AWS behavior.
2. Deploy the same source to a new Gregale app
Install and sign in to the Gregale CLI. From the unzipped demo directory, choose a unique name and deploy. The included manifest points to port 8080 and /healthz.
APP="my-unique-apprunner-catalog-demo"
gregale deploy --name "$APP"
Copy the actual HTTPS URL. If you want the disposable demo to answer without auth and it does not already do so, set both ingress controls:
gregale app update "$APP" --visibility public --public-auth open --no-require-authn
Use that setting only for the synthetic example. On a real migration, preserve the required access checks and use appropriately scoped credentials for parity tests.
3. Prove that a real route matches before switching traffic
Run the included smoke script in Node.js 24. Use only fixture origins:
# If you do not have a disposable App Runner endpoint, run this in a separate shell:
PORT=8080 node server.mjs
# Compare your local stand-in (or the actual App Runner demo URL) with Gregale.
OLD_ORIGIN="http://127.0.0.1:8080"
NEW_ORIGIN="https://YOUR_GREGALE_DEMO_HOST"
node smoke.mjs "$OLD_ORIGIN" "$NEW_ORIGIN"
This checks that /healthz answers 200, the exact JSON and currency/amount from /api/catalog/demo-1, and a 404 for an unknown item. Gregale answers an app's public health path at its edge (the body adds "source":"edge"), so the script compares only the catalog routes exactly. For your own app, use a safe, representative request that's allowed to read a synthetic record using the new service's actual dependency configuration. Record the deploy revision, response, and latency. A green health check alone doesn't prove a real route can reach its dependencies.
We deployed this demo to a disposable Gregale app with CLI v0.1.18-rc.390 on December 4, 2026, opened it with the command above, and ran the smoke check against it and a local copy. Both passed. We didn't deploy it to App Runner, so the comparison with a real App Runner service is untested.
4. Switch one client first and keep the original ready
- Leave App Runner unchanged. Point a test client or a staging frontend at the new origin and run the same smoke checks. If you already use an upstream proxy, check the target's HTTPS hostname and host header before sending any real requests.
- If both origins pass, move a small, controlled slice of traffic using your existing router, or update one client before updating the rest. Compare error rate, response shape and latency. Account for both services' connections to any shared dependency. Use read-only traffic first and don't send duplicate writes to both backends.
- To roll back, restore the previous client or router target and repeat the checks against App Runner. If you plan to change production DNS later, record the old value, plan the certificate and TTL ahead of time, and expect caches to delay reversal. Do not delete the old service while you still need it for rollback. See Gregale custom domain setup.
If you cannot preserve required private connectivity, data residency or AWS identity, keep that workload on AWS. Use the Gregale vs App Runner comparison or App Runner alternatives for the broader decision.
Questions
- Is AWS App Runner being shut down?
AWS closed App Runner to new customers on April 30, 2026. Existing customers can still use it and create services; AWS did not announce a shutdown deadline in that notice.
- Do I have to move my database when migrating from App Runner?
No. Move a stateless service independently if its new deployment can securely reach the existing database. Private VPC and IAM dependencies need a separate plan; ECS Express Mode is the AWS-native route to evaluate.