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.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Save yourself the pain of CloudFormation and check out Terraform.
Cloudformation is a better tool for infra.
Any reason why you donβt like cloudFormation or the SDKs?
CloudFormation is really bad compared to TF.
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.
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
Pulumi is TF alternative but it is not managed like CF. CDK uses CF underneath with all its issues.
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.
How is this better than AWS CDK, and why are you not using CloudFormation? Seems like the sane thing to do in 2025
I'd rather use cdk than CloudFormation. Perfect tooling doesn't exist anyway.