AWS CloudFormation vs. HashiCorp Terraform

Overview
ProductRatingMost Used ByProduct SummaryStarting Price
AWS CloudFormation
Score 8.7 out of 10
N/A
AWS CloudFormation gives developers and systems administrators a way to create and manage a collection of related AWS resources, provisioning and updating them in a predictable fashion. Use AWS CloudFormation’s sample templates or create templates to describe the AWS resources, and any associated dependencies or runtime parameters, required to run an application. Users don’t need to figure out the order for provisioning AWS services or the subtleties of making those dependencies work.…
$0
HashiCorp Terraform
Score 8.7 out of 10
N/A
Terraform from HashiCorp is a cloud infrastructure automation tool that enables users to create, change, and improve production infrastructure, and it allows infrastructure to be expressed as code. It codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned. It is available Open Source, and via Cloud and Self-Hosted editions.
$0
Pricing
AWS CloudFormationHashiCorp Terraform
Editions & Modules
Free Tier - 1,000 Handler Operations per Month per Account
$0.00
Handler Operation
$0.0009
per handler operation
Open Source
$0
Team & Governance
$20/user
per user/per month
Enterprise
Contact sales team
Offerings
Pricing Offerings
AWS CloudFormationHashiCorp Terraform
Free Trial
YesNo
Free/Freemium Version
YesYes
Premium Consulting/Integration Services
YesNo
Entry-level Setup FeeNo setup feeNo setup fee
Additional DetailsThere is no additional charge for using AWS CloudFormation with resource providers in the following namespaces: AWS::*, Alexa::*, and Custom::*. In this case you pay for AWS resources (such as Amazon EC2 instances, Elastic Load Balancing load balancers, etc.) created using AWS CloudFormation as if you created them manually. You only pay for what you use, as you use it; there are no minimum fees and no required upfront commitments. When you use resource providers with AWS CloudFormation outside the namespaces mentioned above, you incur charges per handler operation. Handler operations are create, update, delete, read, or list actions on a resource.
More Pricing Information
Community Pulse
AWS CloudFormationHashiCorp Terraform
Considered Both Products
AWS CloudFormation
Chose AWS CloudFormation
We didn't look into anything else as Cloudformation was "built-in" for AWS, it just kind of made sense to go with that. Terraform was something that we briefly looked into Terraform but decides to stick with Cloudformation because our task was relatively "simple". Apparently if …
Chose AWS CloudFormation
As we have our whole infrastructure on AWS, that is why we selected AWS CloudFormation. AWS CloudFormation is better integrated with AWS services than other available products and also provides visibility and tracking on AWS. AWS CloudFormation is free while Terraform
Chose AWS CloudFormation
Since the product I'm involved is primarily hosted on AWS we use CloudFormation but in some other products where we have hybrid cloud deployments we prefer Terraform which is opensource.
Chose AWS CloudFormation
The only real comparison would be to Terraform, which is another IaC technology at the infra level. Terraform is cloud-agnostic, which means most popular cloud providers are supported. While AWS CloudFormation is AWS-only. Although, if you consider CDK, CDK for Terraform …
HashiCorp Terraform
Chose HashiCorp Terraform
AWS CloudFormation is better if you just want to stick with AWS because it's integration with AWS is better, provides auto-rollback in case of failures, and has GUI to manage and view the stacks built. Terraform is better when we want to stay cloud-agnostic. Terraform is better …
Chose HashiCorp Terraform
HashiCorp Terraform has more possibilities
Chose HashiCorp Terraform
HashiCorp Terraform is much better than Cloud Formation. For one, the language is just easier to use, but more importantly, the provider ecosystem is much better in HashiCorp Terraform than in Cloud Formation.
Chose HashiCorp Terraform
HashiCorp Terraform has Cloud agnostic capability to use with different cloud vendors and the ease of creating the code with minimal effort.
Chose HashiCorp Terraform
CloudFormation is only for AWS so if you're trying to deploy to another cloud provider then Terraform is your product. Terraform has lots of public support so you can find answers to questions by Googling. CloudFormation is easy to view the resources/services that are …
Chose HashiCorp Terraform
Terraform was more preferred over Ansible as it is considerably more intutive.
Features
AWS CloudFormationHashiCorp Terraform
Configuration Management
Comparison of Configuration Management features of Product A and Product B
AWS CloudFormation
8.2
2 Ratings
2% above category average
HashiCorp Terraform
7.9
5 Ratings
2% below category average
Infrastructure Automation8.52 Ratings8.95 Ratings
Automated Provisioning8.52 Ratings8.75 Ratings
Parallel Execution8.02 Ratings6.04 Ratings
Node Management7.52 Ratings7.53 Ratings
Reporting & Logging7.52 Ratings7.94 Ratings
Version Control9.02 Ratings8.35 Ratings
Best Alternatives
AWS CloudFormationHashiCorp Terraform
Small Businesses
HashiCorp Terraform
HashiCorp Terraform
Score 8.9 out of 10
HashiCorp Vagrant
HashiCorp Vagrant
Score 10.0 out of 10
Medium-sized Companies
Ansible
Ansible
Score 9.2 out of 10
Ansible
Ansible
Score 9.2 out of 10
Enterprises
Ansible
Ansible
Score 9.2 out of 10
Ansible
Ansible
Score 9.2 out of 10
All AlternativesView all alternativesView all alternatives
User Ratings
AWS CloudFormationHashiCorp Terraform
Likelihood to Recommend
8.0
(7 ratings)
8.4
(30 ratings)
Usability
8.0
(2 ratings)
8.1
(5 ratings)
Performance
-
(0 ratings)
9.4
(3 ratings)
Support Rating
-
(0 ratings)
7.4
(5 ratings)
Ease of integration
-
(0 ratings)
9.2
(3 ratings)
User Testimonials
AWS CloudFormationHashiCorp Terraform
Likelihood to Recommend
Amazon AWS
I still give it an 8 because it's one of those tools that just quietly does the heavy lifting for you but it can really test your patience when it breaks esp with deep nested stacks. It's perfect for projects where we need clean consistent environments every time. It's less ideal for quick experimental setups like new EC2 configs or Lambda permission tweaks.
Read full review
HashiCorp
Anything that needs to be repeated en masse. Terraform is great at taking a template and have it be repeated across your estate. You can dynamically change the assets they're generating depending on certain variables. Which means though templated assets will all be similar, they're allowed to have unique properties about them. For example flattening JSON into tabular data and ensuring the flattening code is unique to the file's schema.
Read full review
Pros
Amazon AWS
  • All resources can segregated based on stacks which provides greater visibility
  • A complete audit trail of what went wrong while deploying a particular resource
  • Automatically rollbacks if any service as part of CloudFormation results in an error
  • The UI tool is useful
Read full review
HashiCorp
  • Terraform is cloud agnostic. Just select the suitable provider for the cloud and it will do the job.
  • Templating is possible to make the Terraform templates reusable.
  • Variables can be created to make the templates generic so that it can be reused for different environments or resources.
Read full review
Cons
Amazon AWS
  • Error Description upon Failure Needs to be Improved.
  • Slow to create, delete or update.
  • Need to delete resources manually. It can ask before starting deletion whether to skip those resources or delete them.
Read full review
HashiCorp
  • The language itself is a bit unusual and this makes it hard for new users to get onboarded into the codebase. While it's improving with later releases, basic concepts like "map an array of options into a set of configurations" or "apply this logic if a variable is specified" are possible but unnecessarily cumbersome.
  • The 'Terraform Plan' operation could be substantially more sophisticated. There are many situations where a Terraform file could never work but successfully passes the 'plan' phase only to fail during the 'apply' phase.
  • Environment migrations could be smoother. Renaming/refactoring files is a challenge because of the need to use 'Terraform mv' commands, etc.
Read full review
Usability
Amazon AWS
It's easy enough to get a shared template & apply it. You don't even have to download-then-upload or copy-and-paste, a publicly-accessible url works.
Diving deeper, it has enough powerful capabilities to make the life of a platform / DevOps engineer bearable.
However, you need equally deep knowledge to troubleshoot issues, when they inevitably pop up. This is the same for all IaC technologies, as they are additional abstraction layers on top of the native API provided by the cloud providers.
Read full review
HashiCorp
I love Terraform and I think it has done some great things for people that are working to automate their provisioning processes and also for those that are in the process of moving to the cloud or managing cloud resources. There are some quirks to HCL that take a little bit of getting used to and give picking up Terraform a little bit of a learning curve, thus the rating
Read full review
Performance
Amazon AWS
No answers on this topic
HashiCorp
Terraform's performance is quite amazing when it comes to deployment of resources in AWS. Of course, the deployment times depend on various parameters like the number of resources to deploy and different regions to deploy. Terraform cannot control that. The only minor drawback probably shows up when a terraform job is terminated mid way. Then in many cases, time-consuming manual cleanup is required.
Read full review
Support Rating
Amazon AWS
No answers on this topic
HashiCorp
I have yet to have an opportunity to reach out directly to HashiCorp for support on Terraform. However, I have spent a great deal of time considering their documentation as I use the tool. This opinion is based solely on that. I find the Terraform documentation to have great breadth but lacking in depth in many areas. I appreciate that all of the tool's resources have an entry in the docs but often the examples are lacking. Often, the examples provided are very basic and prompt additional exploration. Also, the links in the documentation often link back to the same page where one might expect to be linked to a different source with additional information.
Read full review
Alternatives Considered
Amazon AWS
Cloning a virtual machine creates a virtual machine that is cloning a virtual machine creates a virtual machine that is a copy of the original. The new virtual machine is configured with the same virtual hardware, installed software, and other properties that were configured for the original virtual machine. For information about persistent memory and PMem storage, see the vSphere Cloning a virtual machine creates a virtual machine that is a copy of the original. The new virtual machine is configured with the same virtual hardware, installed software, and other properties that were configured for the original virtual machine. For information. Management guide.For information copy of the original. The new virtual Cloning virtual machine creates a virtual machine that is a copy of the original. The new virtual machine is configured with the same virtual hardware, installed software, and other properties that were configured for the original virtual machine. For information about persistent memory and PMem storage, see the vSphere Resource Management Guide. For information is configured with the same virtual hardware, installed software, and other properties that were configured for the original virtual machine. For information about persistent memory and PMem storage, see the vSphere Resource Management Guide. For information
Read full review
HashiCorp
Terraform is the solid leader in the space. It allows you to do more then just provisioning within a pre-existing servers. It is more extensible and has more providers available than it competitors. It is also open source and more adopted by the community then some of the other solutions that are available in the market place.
Read full review
Return on Investment
Amazon AWS
  • + We can standup a VPC in minutes
  • - It took a lot of inital time to set up
  • + With logging/rollback, made testing much easier.
Read full review
HashiCorp
  • we are able to deploy our infrastructure in a couple of ours in an automated and repeatable way, before this could take weeks if the work was done manually and was a lot of error prone.
  • having the state file, you can see a diff of what things have changed manually out side of Terraform which is a huge plus
  • if state file gets corrupted, it is very hard to debug or restore it without an impact or spending hours ..
  • writing big scale code can be very challenging and hard to be efficient so it's usable by the whole team
Read full review
ScreenShots

AWS CloudFormation Screenshots

Screenshot of CloudFormation - How it works overviewScreenshot of CloudFormation - High level how it worksScreenshot of CloudFormation - Template exampleScreenshot of CloudFormation - Template inputs overview

HashiCorp Terraform Screenshots

Screenshot of Terraform StateScreenshot of Terraform RunsScreenshot of Terraform VariablesScreenshot of Terraform WorkspacesScreenshot of Terraform Cost Estimation