So, you know, it's built by AWS engineers, supported by AWS engineers. It's guaranteed to work there. The serverless framework, you know, it might work with other clouds a little bit better. But, you know, that's kind of by design. So, I guess, in my opinion, if you're deploying to AWS, using official AWS tools is probably the best-case scenario.
I agree. So, a fair point. You know, serverless framework has its own benefits, especially for serverless applications. You also have SAM on AWS, which is kind of a transformation of CloudFormation. But, CDK, again, like, one of the things that CDK has, and you prove this in your talk, is that it has this ability to use a native programming language to build things out. So, if you're a JavaScript developer, I mean, it's much more easier to write this than try to hash out some JSON or YAML, in this case.
Okay, we have more questions. One coming from AO. For one of us that is already building our infrastructure in CloudFormation, is it possible to import current resources, like a production database or something static, into the Cloud Development Kit? Yes, you should be able to do that. So, I'm working on a somewhat large AWS project right now that's built on top of CloudFormation and you can chip away at it by porting bits of it to the CDK a little bit at a time. So you don't necessarily have to make the whole big bang transition, if that's what you're asking, if that makes sense.
Right, so you're saying that potentially you don't have to transfer your entire thing into CDK at once, you know, you can leave some things and other ways of provisioning things. Right. I'm also definitely not advocating for, you know, if you have a working solution to just completely drop everything and try to re-architect it just because, you'll probably end up with more headaches than times. Yeah, you know, I was one of the things, one of the infinite wisdoms I hear heard out there is the best framework slash programming language is the one you're good at. So that's what that's the one you should use.
Okay, we have a question from SB. Why is CDK so heavily based on classes rather than more usual constructs in JavaScript like functions? So it's just a way of looking at the cloud as a collection of objects that kind of interact together via different properties. So, you know, for example, you have a lambda function, I think it's easy to think of that as a clash, you have an instance of a lambda, it has specific properties on it, like an ARN and things of that nature. Whereas if you were to try to make it more functional, I think the code would be a little less clean in that fashion. Got it. Got it. Okay. Okay. Yeah.
Comments