News for hackers. Stuff that matters.
Re:Does anyone else finds AWS and other Amazon services over... by Hawxy on Sunday November 06, 2022 @07:04AM (#33491708)
> 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-...

Re:Does anyone else finds AWS and other Amazon services over... by gw98 on Sunday November 06, 2022 @07:19AM (#33491806)
We don’t know typescript. So we’d have to learn that first.
Re:Does anyone else finds AWS and other Amazon services over... by Hawxy on Sunday November 06, 2022 @07:36AM (#33491909)
CDK also works with Java or Python.
Re:Does anyone else finds AWS and other Amazon services over... by indymike on Sunday November 06, 2022 @07:27AM (#33491849)
Do you know JavaScript?
Re:Does anyone else finds AWS and other Amazon services over... by gw98 on Sunday November 06, 2022 @08:22AM (#33492324)
Nope!

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.

Re:Does anyone else finds AWS and other Amazon services over... by irjustin on Sunday November 06, 2022 @08:20AM (#33492287)
To 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.