Skip to content

Repository files navigation

cani.tf

As time passes, OpenTofu and Terraform become more distant from each other. CanI.TF helps us to understand their differences quickly.

Add new features

The tools/tools.yaml file is the source of truth. Then run go run main.go to validate and regenerate data/tools.json and static/tools.json.

tools/tools.yaml structure

The file has two top-level keys:

tools

Metadata for each tool. Displayed in the header rows of the comparison table.

tools:
opentofu:
version: "1.11"versionURL: https://github.com/opentofu/opentofu/releases/latestlicense: MPL-2.0licenseURL: https://github.com/opentofu/opentofu/blob/main/LICENSEregistry: https://search.opentofu.org/

features

Each tool entry under a feature supports three optional fields:

FieldDescription
versionThe version that introduced the feature (e.g. "1.9").
urlURL to the feature's documentation. Renders the version as a link.
featureRequestURLURL to an open issue or RFC tracking the feature. Renders as a ? link when the feature is not yet supported (i.e. no version).

Feature supported by both tools:

- name: State encryptiontools:
opentofu:
version: "1.7"url: https://opentofu.org/docs/language/state/encryption/terraform:
version: "1.9"url: https://developer.hashicorp.com/terraform/language/state/encryption

Feature supported by one tool only (renders - for the other):

- name: State encryptiontools:
opentofu:
version: "1.7"url: https://opentofu.org/docs/language/state/encryption/

Feature not yet supported, with a tracking link:

- name: Some upcoming featuretools:
opentofu:
version: "1.9"url: https://opentofu.org/docs/...terraform:
featureRequestURL: https://github.com/hashicorp/terraform/issues/123

Local development

$ # Install hugo
$ asdf plugin add hugo
$ asdf install
$ go run main.go
$ hugo server --buildDrafts --disableFastRender
$ # HTML templates are in layouts/_default

About

New features and parity between Terraform and OpenTofu

Topics

Resources

Stars

84 stars

Watchers

6 watching

Forks

Used by

Contributors

Languages