# Comparison with Other Tools

> **Status:** Draft 0.2, 2026-11-23. How Gravity Keep's ideas map onto Terraform's and CloudFormation's, how it compares with the tools that already reconcile or check for drift continuously (Crossplane, AWS Controllers for Kubernetes, HCP Terraform, Pulumi Cloud), where it is better, and where it is not. Written for people who know these tools well. Facts about other tools were checked against their own documentation on 2026-11-23; they change, so check again before relying on one. Companion to [Vision](vision.md) and [Adoption Path](adoption-path.md).

# 1. Concept map

| Terraform | CloudFormation | Gravity Keep |
|---|---|---|
| Root module, directory, workspace | Stack, nested stack, StackSet | Namespace in one tree |
| Provider configuration (account, region) | Stack's account and region | `placement`, inherited |
| Module | Nested stack, module (registry) | Template, applied with `apply` |
| Variables, locals, `for_each`, `count`, conditionals | Parameters, conditions, `Fn::` intrinsics | Typed template parameters; no expressions ([CTL-018](rules.md#templates)) |
| `default_tags`, policy as code (Sentinel, OPA) | Stack tags, Guard, hooks | Defaults and guardrails on a namespace |
| State file and lock | Stack state, managed by the service | Postgres store: active configuration plus observed state |
| `plan` | Change set | `commit check` |
| `apply` | Execute change set | `commit`, then convergence |
| Refresh and drift in plan | Drift detection, on request | Continuous, from CloudTrail and the sweep |
| `import` block, `terraform import` | Resource import | `adopt`, and `explore` for a whole area |
| `removed` block with `destroy = false`, `terraform state rm` | Retain on stack delete | `evict` |
| (none) | (none) | `ownership learning`: console activity written into the tree |
| `state mv`, `moved` block | Not really possible | `move`, `rename` |
| `prevent_destroy`, `lifecycle { ignore_changes }` | `DeletionPolicy`, termination protection | `protect`, `destroy { }`, `create { }` |
| Reverting a commit and re-applying | Rollback on failure, previous template | `rollback <n>`, `request revert`, `commit confirmed` |
| Data sources | `Fn::ImportValue`, SSM parameters | References into the tree; adopt anything outside it |
| AWS provider (hand-written per resource) | Registry types | Registry types through Cloud Control API |

# 2. The tools that already watch continuously

Gravity Keep is not the first tool to compare what AWS holds with what was declared, and act on the difference. It sits between two existing families.

**Scheduled drift checks on top of Terraform and Pulumi.**

| | HCP Terraform health assessments | Pulumi Cloud drift detection | Gravity Keep |
|---|---|---|---|
| How drift is found | A plan run periodically (the documentation's example is every 24 hours) | A refresh on a cron schedule you set | CloudTrail events within minutes, plus a sweep of managed resources |
| What happens | You're notified; you overwrite the drift with an apply, or change the configuration | You're notified, or, with auto-remediation on, `pulumi up --refresh` runs | By namespace: remediated, reported, or written into the tree (`learning`) |
| Who sees the change | The plan's difference | The refresh's difference | The CloudTrail identity that made it |
| Edition | HCP Terraform Standard and Premium | Pulumi Cloud Pro and Enterprise | Self-hosted |

These close most of the "drift is found late" gap for teams that keep Terraform or Pulumi. What they don't change is the model underneath: a state file per workspace or stack, hierarchy expressed as workspaces and directories, and changes applied as runs rather than committed as one tree.

**Kubernetes control planes for AWS.**

| | Crossplane | AWS Controllers for Kubernetes (ACK) | Gravity Keep |
|---|---|---|---|
| Where desired state lives | Kubernetes objects | Kubernetes objects | One tree in Postgres, optionally sourced from Git per branch |
| Runs on | A Kubernetes cluster | A Kubernetes cluster, one controller per AWS service | Lambda, Step Functions, and Postgres; no cluster |
| How drift is found | Polling each managed resource on an interval | Each controller's reconcile loop | CloudTrail events, plus a sweep |
| What happens to drift | Overridden, unless the resource's management policies say otherwise | Reconciled to the declared resource | By namespace policy |
| Watch without changing | Management policy `Observe` | Adoption brings resources under a controller | `ownership observed` |
| Don't delete on removal | Omit `Delete` from the management policies | Deletion policy `retain`, by resource, namespace, or controller | `destroy { }` with `deletion retain` or `evict`; the `evict` command |
| Bundles | Compositions | None; one resource per object | Templates, versioned and substitution-only |
| Multi-cloud | Yes, through providers | No, AWS only | No, AWS only |

Crossplane is the closest relative. Its managed resources are reconciled continuously, its `Observe` management policy is Gravity Keep's `observed`, and compositions play the part of templates. The difference is mostly what it's built on: Crossplane is a Kubernetes API, so a company adopts Kubernetes to use it, and it brings Kubernetes's own model of namespaces, RBAC, and object lifecycles. Gravity Keep is built for a company with no cluster, and its model is a network device's: one tree, edited as a candidate, committed whole.

# 3. Where Gravity Keep is better

- **Drift is handled by the minute, not the schedule.** HCP Terraform and Pulumi check on a schedule, and Crossplane polls. Gravity Keep hears about a change from CloudTrail within minutes, names who made it, and acts by policy. It is not unique in correcting drift automatically (Crossplane and Pulumi's auto-remediation do too); it is unusual in doing it from the change event with the person's name attached.
- **One tree, with real hierarchy.** Account, region, organization, and environment are placement in one tree, not workspaces, directories, provider aliases, or Kubernetes namespaces. An account moving under an organization is one commit.
- **Common settings are stated once.** A guardrail at the top of the tree can't be bypassed by a module or composition that forgot it, an audit guardrail shows its reach before it is real, and `display inheritance` shows where every value came from.
- **No state surgery.** There is no state file to lose, split, or edit by hand. Moving resources between namespaces never replaces them.
- **Plans are against what exists now.** Every action is recomputed from current state just before it runs.
- **Network-device safety.** Private candidates with conflict detection, `commit confirmed` that reverts a change that cut someone off, `rollback` and `request revert`, and holds for break-glass work. None of the tools above has a confirmed commit.
- **Supervision moves in both directions.** `explore` brings a whole area in, `learning` lets a sandbox fill itself from the console, and `evict` hands resources back without touching them.
- **Governance at the point of change.** Reviewed namespaces require a Git source or a second person, review follows everything a commit reaches, and the history proves it.
- **No cluster to run.** Compared with Crossplane and ACK, there is no Kubernetes to operate, upgrade, and secure.
- **CloudTrail tells you which commit did it.** Every call is made in a role session named for its commit.

# 4. Where it is about the same

- **Coverage of AWS.** Cloud Control API covers most registry types and each type's schema is AWS's own, so coverage tracks CloudFormation's. That is less than Terraform's AWS provider for a few services and better for brand-new ones, which often reach the registry first. Crossplane's and ACK's coverage varies by provider and controller.
- **Review in pull requests.** A Git-sourced namespace is a file in hierarchical form that diffs well, and a pipeline can post `commit check` output to the pull request the way teams post `terraform plan` today. Unlike Terraform, Git isn't required: a namespace can be sourced in the control plane and reviewed by commit request, with every commit still copied outside the control plane.

# 5. Where Terraform and Pulumi win

Say it plainly, so nobody adopts Gravity Keep for the wrong reason:

- **More than AWS.** Terraform and Pulumi manage other clouds, DNS providers, SaaS (Datadog, GitHub, Okta), and on-premises systems. Gravity Keep manages AWS only.
- **Maturity and ecosystem.** A decade of modules, documentation, community answers, and people who already know them. Gravity Keep would be new.
- **They need nothing running**, or nothing you run: Terraform is a binary and a state backend, and HCP Terraform and Pulumi Cloud are services. Gravity Keep is a running, privileged system that must itself be secured and operated.
- **Expressiveness.** Some teams rely on `for_each` and expressions, or on Pulumi's general-purpose languages, to generate large, regular estates. Gravity Keep's refusal of an expression language is deliberate, and it will make some configurations longer.
- **Offline work.** `terraform plan` runs on a laptop. `commit check` needs the control plane.

# 6. Where CloudFormation wins

- **Nothing to run.** It is a managed service.
- **Rollback on failed creation** is automatic within a stack. Gravity Keep leaves partial progress in place, by design ([commit-model 4](commit-model.md#4-commit-and-convergence)).
- **StackSets** deploy one template to many accounts and regions. Gravity Keep does this with explicit namespaces and templates, which is clearer but longer (CTLQ-004).

Gravity Keep borrows from CloudFormation where it can: its types are registry types, its export format is a CloudFormation template, and its bootstrap is a CloudFormation stack.

# 7. Where Crossplane and ACK win

- **A company already on Kubernetes** gets them on a platform it already runs, secures, and knows, with the same tooling (`kubectl`, GitOps controllers, RBAC) it uses for everything else.
- **Crossplane is multi-cloud**, through its providers, and has a large community and catalogue of compositions.
- **ACK is maintained by AWS**, one controller per service.
- **Composition logic.** Crossplane compositions can run functions that compute resources, which some teams want and Gravity Keep deliberately refuses.

# 8. When to choose it

Choose Gravity Keep for an AWS-only estate where drift, multi-account structure, and the evidence of who changed what are the real costs, and where the company doesn't run Kubernetes or doesn't want its infrastructure to depend on a cluster. It needs nothing from the Gravity Standard, though it is built to fit one.

Keep Terraform or Pulumi for anything that spans other providers, and for the parts of an AWS estate a company would rather not have a running system own; add their scheduled drift detection if late drift is the only pain. Choose Crossplane or ACK if the company is already a Kubernetes shop and wants infrastructure in the same API as its applications.

The tools can share an estate indefinitely: Gravity Keep lists resources managed by Terraform or CloudFormation as managed by that tool and leaves them alone ([CTL-035](rules.md#ownership-and-deletion)), and `evict` hands resources over cleanly when a branch moves to another tool.
