DEV Community

Discussion on: Serverless Tips for 2021

Collapse
 
joanllenas profile image
Joan Llenas Masó

Ok, I just checked AWS CDK, and I'm quite impressed.
With the CDK, It looks like that the abstraction doesn't "leak"; you truly get rid of all manual configurations and configuration files. You can code everything.

The idea of constructs and high-level constructs makes sense, it's basically a 1:1 relationship with the real thing, so I guess that knowledge is quite portable compared to other abstractions that try to redefine The Cloud homogeneously.

Like you, I'm not a huge fan of doing stuff with Ts classes, but I can live with that, especially compared to yamls and jsons. But you are exactly right; the CDK is super imperative. Even with classes, you can create things that are much more declarative than that. Definitely not a fan of the style they chose to write the thing.

I also like that you keep things within the AWS umbrella. ServerlessFWK is another account that you have to connect to AWS. I'd rather avoid that if possible.

Those are my first impressions. I could be wrong. I will try to validate them by doing a proof of concept.
I should stop learning and start getting my hands dirty!