Since I've seen Hashicorp Terraform, I have been wondering why the "plan" it can export has binary format.

Now in the AWS world you have got a declarative configuration language called CloudFormation which can be abstracted from using AWS CDK (Cloud Development Kit) in a common programming language of your choice.

Therefore my question: imagine somebody familiar with CloudFormation would like to see what CDK code will do. Is there a way to export a CloudFormation file using CDK?


Yes: in the hello world CDK example, they call it "synthesizing":

cdk synth

^^ produces CloudFormation file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.