Adopt and migrate infrastructure

Bring already-running cloud infrastructure under Facets management without changing it, and move live caches, databases, and secrets from AWS to GCP with the source kept read-only.

Praxis can take infrastructure you already run and adopt it into Facets, and it can move live data and secrets from AWS to GCP. Both jobs happen in conversation: you describe what you want, and the agent loads the right skill, a set of step-by-step instructions it follows using its own tools, and carries out the work. The two are complementary steps of the same move: first adopt the infrastructure so Facets manages it, then migrate the data that lives inside it. Neither task has a dedicated screen.

📘

Planning a full cloud-to-cloud move? Start with the Cloud Migration Agent, the guided app that discovers what you run, compares cost, and maps workloads into Facets. That app plans and maps; it does not adopt resources into Terraform state or move data. The capabilities on this page are the layers that do.

Import existing infrastructure

You can bring resources that are already running, whether created by hand, by another tool, or by a separate Terraform setup, under Facets without recreating them. Facets manages infrastructure as code and keeps a record, called Terraform state, of every resource it owns. Importing adds an existing resource to that record, so future changes flow through Facets while the resource itself keeps running untouched.

One request starts the work, for example: "Bring my existing S3 bucket my-existing-bucket under Facets in project shop, environment prod." Praxis may still ask which project, environment, and blueprint resource to adopt it into.

Before importing, the resource must be in the blueprint with settings that match the live one, so Praxis often edits the blueprint or module first. Its dependencies, such as the cloud account, must already be deployed. Praxis looks up the real cloud identifiers read-only and imports only what exists. It also checks that the environment can run an import release and that your role allows one.

The defining guarantee is zero change. Praxis prefers to adopt through an import release, which the control plane refuses if its plan would create, change, or destroy anything. A refused release applies nothing (Zero-change or standard import).

CRD-driven environments can't run an import release, and neither can environments whose release pipeline predates the import step. A CRD-driven environment's project type shows CRD-driven under Ops Center > Project Types. There, if you've explicitly asked for the adoption, Praxis runs a custom release and holds its plan to the same rule itself.

When a plan would change a running resource, Praxis treats that as a modeling fault and fixes the module or blueprint instead of loosening the gate. The usual causes are a sub-resource that wasn't imported, a Terraform-only setting such as force_destroy, an undeployed dependency, or real drift. Running a finished import again succeeds with nothing to do.

Praxis then confirms the resource's outputs appear in Facets and the newest release is a succeeded import release.

Throughout, Praxis holds to one principle: never delete, recreate, or disrupt a running resource, and make the smallest change possible.

This works across AWS, GCP, Azure, and MongoDB Atlas, and has been used to adopt large production estates.

GCP has a dedicated, phased approach for big shared environments. Praxis adopts the running estate read-only under the zero-change gate, proves the modules deploy by standing up one of each type in a fresh environment, then bulk-adopts the rest by type. One rule holds throughout: when the new environment shares the source's GCP project or network, nothing done in the new environment may affect the running one.

Migrate data stores

Adopting infrastructure into Facets does not move the data inside it. For that, Praxis migrates a running cache, database, or set of secrets from AWS to GCP. In every case the source stays strictly read-only: the migration reads from it and never writes to or alters it, and Praxis verifies the copy before you cut over. Praxis plans the move and generates the exact commands, but it does not run the copy itself from the chat. The copy runs from a host that can reach both the source and target endpoints, the reachability host that is the prerequisite people most often miss, or Praxis hands it to an operator to run.

Caches (Redis or Valkey, such as AWS ElastiCache to GCP Memorystore): Praxis first checks whether a copy is worth making at all, since a cache you can rebuild from its source of truth can be started cold on the target instead. When a copy is needed, it drives RIOT, an open-source Redis migration tool, to replicate the keys, then watches key-count parity and replication lag so you know when the target has caught up and cutover is safe.

Databases (AWS RDS or Aurora running Postgres or MySQL, to GCP Cloud SQL or AlloyDB): Praxis chooses the strategy from how much downtime you can accept. For near-zero downtime it uses Google's Database Migration Service to run a full load followed by change data capture, which streams ongoing writes until you switch over; for a planned maintenance window it uses a one-shot dump and restore. Any change the source needs to enable replication is printed for you to run yourself, never applied automatically. When the load finishes, Praxis verifies the result table by table, comparing row counts and checksums so you can trust that the target matches. After cutover, reset the sequences and AUTO_INCREMENT counters on the target: change data capture does not advance them, so new inserts otherwise collide with existing primary keys. This is the most common post-cutover bug.

Secrets (AWS Secrets Manager to GCP Secret Manager): a person runs this migration, by design. The read-only access Praxis uses to explore your cloud deliberately cannot read secret values, so the agent plans the mapping and reviews the output for an operator to run. It never creates the target secret, which must already exist as part of your infrastructure code, and it verifies each copied value byte for byte. Secret values stay in memory during the run and are never written to disk or logs.

Access and safety

You reach these capabilities by chatting with Praxis or through the Praxis CLI; there is no dedicated screen for them. Importing needs access to the Facets Control Plane, through the raptor CLI, plus the cloud integration for the account; the data migrations need the cloud integration and a reachability host. Read-only discovery runs server-side under your organization's connected cloud credentials. The import itself runs as a release in the environment's own pipeline, while the actual copy of your data runs from the reachability host or an operator. The source is always read-only. Praxis adds no approval step of its own (What Praxis can read and what it can change); the zero-change gate is what protects a running resource. A person runs the change that enables replication and the secret copy. What Praxis can apply in Facets is set by the account it acts as, which in chat is your own access. In chat, Praxis checks on a long import until it finishes (Where it runs). For how Praxis executes commands, protects credentials, and keeps you in control, see How Praxis works and stays safe.