DEV Community


Discussion on: Pulumi - IaC in your favorite programming language!

thomasstep profile image
Thomas Step

Have you used the AWS CDK? I would be curious to know if you prefer Pulumi over a tool built by a cloud provider themselves. Of course, that question only really applies if the target cloud is AWS!

schollii profile image

CDK is too things:
1) an SDK (in several programming languages) to generate CloudFormation template files (CFTF);
2) a controller of cloudformation

Pulumi is similar for #1 (just different API), but very different for #2. CF has a purist implementation of state-based infrastructure, ie CF will not let your stack be halfway betwen your original state and your desired state. If this sounds good in theory, it's a pain in practice, I've seen updates via CF fail both the rollout and the rollback! Then what do you do? You're screwed. With terraform, the description of your infrastructure is the state; it will let you get partway there, but always knows where you are on that path.