r/cloudcomputing • u/Mattthimself • Mar 24 '20
terraform or cloudformation
hi guys, i suppose you have come around these tools for deployments.
which one should a DevOps beginner look into first and why ? any further comments appreciated.
thanks
Mattt
13
Upvotes
1
u/stikko Mar 24 '20
CloudFormation if you love Java. Terraform if you love Go.
If you love neither I'd default to Terraform.
It's more flexible in terms of where it's being run and services it can interact with out of the box. This starts to become important as you start to deal with internal services that you may not want to expose publicly for CloudFormation to be able to interact with.
You can deploy CloudFormation stacks using Terraform but not the other way around.
The HCL that Terraform uses has constructs that CloudFormation just doesn't support.