Skip to content

Moving an app already on AWS ​

If the app already runs in your AWS account, Keel can manage what's there rather than build it again.

Run in the existing VPC ​

keel init lists the account's VPCs that could carry the app, with their subnets sorted by their routes. Or name one yourself:

yaml
vpc:
  id: vpc-0a1b2c3d4e5f60718
  private_subnets: [subnet-0aaa1111bbbb2222c, subnet-0ddd3333eeee4444f]
  public_subnets: [subnet-0123456789abcdef0, subnet-0fedcba9876543210]

Keel creates nothing in the VPC itself, and before every plan it checks that the subnets can carry the app. See Running in an existing VPC.

Adopt the database ​

bash
keel adopt database orders-db          # an RDS instance or an Aurora cluster

Keel reads the instance, writes the matching database: block, and plans the import. Nothing changes until the plan says it's safe:

  • Replacements are refused. If the plan would replace or destroy anything, adoption stops and names the property.
  • In-place changes are listed. Every one is shown before you confirm by typing the identifier.

For Aurora, Keel manages the cluster and its writer; reader instances stay as they are. See Adopting an existing database.

Adopt the secrets ​

bash
keel adopt secrets --ssm-path /orders/prod/
keel adopt secrets --secret orders/prod/app        # a Secrets Manager JSON secret: one name per key

Each value is copied into this environment as a SecureString, and its name is added to secrets:. No value is ever printed. It is a copy: the originals stay as they are, so retire them once nothing reads them.

Use the hosted zone ​

bash
keel adopt zone orders.example.com

This records the existing Route 53 zone, with its id pinned, so Keel adds its records there. Keel never creates or deletes the zone itself.

Then ​

bash
keel up
keel deploy

Keel — the missing platform layer for AWS.