by nicobn · 10y ago · 0 comments
But yeah, CloudFormation just sucks. It does. It's painful because it's a really good idea but the configuration format is inadequate for the task.
CF should have been implemented using a declarative DSL similar to Puppet from the start. I've been tinkering with the idea of creating a DSL with a JSON translation layer but I always assumed AWS would eventually move away from JSON anyway, making the effort futile. Four years later and still no improvements. Definitely my biggest disappointment with their platform.
Terraform is great so far. I am running into some duct-tape issues with resources shared between two terraformations, though.
The format is a weak argument against cloud formation. It has some negatives. This one is easily overcome.
Important tip: If you use one of jetbrains IDE (IntelliJ/PyCharm/...) there is a free plugin to handle terraform files.
It gives the usual syntax highlighting + auto completion of variables and devices + detection of errors. It's very very nice!