4 ms·
> CDK is just another way of expressing the same things as terraform and cloudfront but using a framework which is opaque. It also involves writing many, many
by Hawxy 4y ago
> CDK is just another way of expressing the same things as terraform and cloudfront but using a framework which is opaque.
It also involves writing many, many less lines of code than Cloudformation/Terraform thanks to the excellent abstractions it bundles in. Your example of writing "2 days' worth of YAML" is less than 120 lines of Typescript in CDK. You could even skip that and just npm install the AWS solutions construct for this scenario if you have literally no idea what you're doing: https://docs.aws.amazon.com/solutions/latest/constructs/aws-cloudfront-s3.html https://docs.aws.amazon.com/solutions/latest/constructs/aws-...
- gw98 4y agoWe don’t know typescript. So we’d have to learn that first.
- indymike 4y agoDo you know JavaScript?
- gw98 4y agoNope! Edit: not strictly true. I know JavaScript quite well but I wish to have nothing whatsoever to do with it and the ecosystem around it due to a number of reasons I would have to write a whole essay on.
- fuckelonmusk 4y ago
- Hawxy 4y agoCDK also works with Java or Python.
- irjustin 4y agoTo be absolutely fair the CDK is non-trivial. If you know CloudFormation, you do _not_ know the CDK. The CDK is split in 3 versions, ver 1, ver 2 and v2-alpha. Knowing the difference between L1, L2 missing options between the two. Don't even get me started on docs. Docs in CloudFormation is KING. CDK's docs are a simplification at BEST. Most of the time I have to drop down into CF's docs to see what the actual constraints on a key are. Given all my complaints, I'm not going back to CloudFormation. It is wayyyyy less code. Separated files. And, it's too hard to do complex stuff in CF. CDK has a lot of nice magic that takes away so much complexity esp dealing with cross region work.