Hacker News new | ask | show | jobs
by nuker 589 days ago
> Give me Terraform (as much as I hate it) any day.

Just use CloudFormation. Easy to write, declarative, vars (Parameters and Output exports). Trick is not to pile everything in one Stack. Use several.

1 comments

CDK is much better to express this. Why cfn?
Less lines, easier to read, declarative (cdk is interactive, less predictable).

And it generates shitty CFN, we can do better ourselves :)

How is cdk interactive? I use cdk and have it auto build and deploy.
It is "imperative", not interactive, sorry. From Wiki:

"There are generally two approaches to IaC: declarative (functional) vs. imperative (procedural). The difference between the declarative and the imperative approach is essentially 'what' versus 'how'."

https://en.wikipedia.org/wiki/Infrastructure_as_code#Types_o...