Skip to content

Moving from Fly.io ​

Follow the six steps; this page covers what's specific to Fly.

Draft the config ​

bash
keel init --from fly.toml

What Keel reads from fly.toml:

  • [processes] become services. app becomes web, and the processes [http_service] names become web services on its internal_port.
  • The first [[http_service.checks]] path becomes the health check.
  • [deploy] release_command becomes release.command.
  • [build] dockerfile is kept.
  • [env] keys become secrets: names, without their values.
  • primary_region is reported and not used, because a Fly region isn't an AWS region. The draft uses the region you choose at the prompt.

Secrets ​

fly secrets list shows names only, so set each value from wherever you keep it:

bash
keel config set STRIPE_KEY=...

Data ​

Take a custom-format dump using a connection to your Fly database. Managed Postgres gives you a connection string; an older Fly Postgres app is reached through fly proxy. Then load it:

bash
pg_dump -Fc --no-owner --no-acl "$FLY_DATABASE_CONNECTION_STRING" > app.dump
keel db import app.dump

Keel — the missing platform layer for AWS.