CloudFormation vs Terraform

Users debate the merits of Infrastructure as Code tools like CloudFormation, Terraform, CDK, and Pulumi for AWS infrastructure management, sharing pros, cons, and personal experiences.

πŸ“‰ Falling 0.3x DevOps & Infrastructure
3,238
Comments
16
Years Active
5
Top Authors
#6105
Topic ID

Activity Over Time

2011
9
2012
1
2013
11
2014
33
2015
53
2016
99
2017
87
2018
195
2019
259
2020
466
2021
663
2022
418
2023
421
2024
304
2025
206
2026
13

Keywords

PHP AWS CAB IMO DSL TF CloudFormstion SDK CloudFormation YAML terraform aws tf cf resource code resources cloud supports support

Sample Comments

cbsmith β€’ Nov 30, 2016 β€’ View on HN

Save yourself the pain of CloudFormation and check out Terraform.

nuker β€’ Jun 4, 2021 β€’ View on HN

Cloudformation is a better tool for infra.

rank0 β€’ Aug 15, 2023 β€’ View on HN

Any reason why you don’t like cloudFormation or the SDKs?

Thaxll β€’ Jan 27, 2018 β€’ View on HN

CloudFormation is really bad compared to TF.

kevan β€’ May 28, 2022 β€’ View on HN

Have you checked out CDK or Pulumi? CDK still has a few warts but overall I've been pretty happy with it. Haven't used Pulumi but from chatting with friends it sounds like it has a similar feel as CDK but supports multi-cloud like Terraform.

WatchDog β€’ Mar 3, 2025 β€’ View on HN

I'm quite happy with CDK[0].My experience is only with the main AWS cloudformation based version of CDK, although there is also CDK for terraform, which supports any resource that terraform supports, although some of what I'm about to say is not applicable to that version.What I like about CDK, is that you can write real code, and it supports a wide range of languages, although typescript is the best experience.Provided that you don't use any of the `fromLookup` type func

tokamak β€’ May 28, 2022 β€’ View on HN

Pulumi is TF alternative but it is not managed like CF. CDK uses CF underneath with all its issues.

gregimba β€’ Feb 18, 2020 β€’ View on HN

I don't want to throw a wrench into your article but have you considered using terraform instead. I've found it allows me to write much more readable code than Cloudformation.

puppion β€’ Mar 20, 2025 β€’ View on HN

How is this better than AWS CDK, and why are you not using CloudFormation? Seems like the sane thing to do in 2025

ausudhz β€’ Dec 17, 2021 β€’ View on HN

I'd rather use cdk than CloudFormation. Perfect tooling doesn't exist anyway.