Hacker News new | ask | show | jobs
by fwungy 948 days ago
Depends.

Terraform can get ugly for a large codebase. You have a lot of power with an actual programming language instead of YAML. But CDK is more complicated and the learning curve is higher.

My preference would be Terraform for small-mid sized infra and CDK for larger installations where code abstraction and reuse was more important.

But they both disappoint in their own ways. Orchestration is the great unsolved problem of the cloud.

1 comments

I agree with this sentiment entirely.

To add to that; if you're dealing with multiple cloud providers it's a lot nicer to push a standard configuration, say networking, into a type system. Then you implement interfaces that accept that configuration and handle the provider specific bits.

That way the day-to-day tweaking of the config is the same, regardless of provider.