Skip to content
SPECIFICTION
Get listed

AWS CloudFormation vs OpenTofu

AWS CloudFormation

aws.amazon.com

OpenTofu

opentofu.org

Side by side

FigureAWS CloudFormationOpenTofu
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WebYes—
WindowsYesYes
macOSYesYes
LinuxYesYes
iOSYes—
APIYes—
Self-hosted—Yes
Plans published31
Spec score · IT Configuration Management Software9.1 (#1)7.8 (#16)
Spec score · Infrastructure as Code Tools9.0 (#2)7.8 (#11)
Spec score · Orchestration / Provisioning Software9.1 (#2)7.8 (#16)
Spec score · Infrastructure Automation9.1 (#2)7.8 (#12)
Spec score · Cloud Orchestration Software9.0 (#3)7.8 (#11)
Founded20062023
PurposeCloudFormation models, provisions, and manages related AWS and third-party resources as infrastructure as code.OpenTofu is an infrastructure as code tool for defining cloud and on-premises resources in human-readable configuration files.

Plans

AWS CloudFormation

  • AWS CloudFormationFree
  • CloudFormation serviceFree
  • Third-party resource providersFree

AWS CloudFormation pricing →

OpenTofu

  • OpenTofuFree

OpenTofu pricing →

In their own words

AWS CloudFormation

AWS CloudFormation models, provisions, and manages related AWS and third-party resources as infrastructure as code. YAML or JSON templates define AWS resources and their properties. StackSets deploy a common set of resources across multiple AWS accounts and Regions; Change Sets preview proposed stack updates, including possible deletion or replacement, and Drift Detection tracks changes made outside the service. For authoring, AWS CDK supports TypeScript, Python, Java, and .NET, while AWS SAM offers shorthand YAML for serverless resources that is converted during deployment. The CloudFormation Registry supports third-party resources and modules, and stacks can be updated from remote Git repositories. The service is available through API, Linux, macOS, web, and Windows, and manages state. CloudFormation itself has a free plan, with no additional charge for AWS and Alexa resource providers, but created AWS resources are billed at their standard rates. Third-party provider and custom hook operations may also incur charges. Access can be managed with IAM, and CloudTrail logs API calls.

Visit aws.amazon.com

OpenTofu

OpenTofu is a free infrastructure as code tool for defining cloud and on-premises resources in human-readable configuration files. Its workflow moves from writing configuration to generating a plan and applying approved changes in dependency order. Providers connect it with cloud platforms, SaaS services and APIs, including AWS, Azure, Google Cloud Platform, Kubernetes, Helm, GitHub, Splunk and Datadog. Reusable modules and a public registry support configurable infrastructure collections. OpenTofu tracks resources in a state file, builds a dependency graph and can change independent resources in parallel. Built-in client-side state encryption supports key providers such as PBKDF2, AWS KMS, GCP KMS and OpenBao. Providers can be installed from registries, local mirrors or caches, including for air-gapped environments. OpenTofu is presented as a Terraform replacement that preserves existing workflows and configurations. OCI registries can host modules and serve as a secondary provider source, but not yet the primary source. Official installation options cover Linux, macOS, Windows, FreeBSD and OCI container images.

Visit opentofu.org