3 ms·
It’s pretty hard to express abstraction and control flow in a format like YAML or XML. You’ll probably find less friction in using https://aws.amazon.com/cdk/ h
by erik_seaberg 3y ago
It’s pretty hard to express abstraction and control flow in a format like YAML or XML. You’ll probably find less friction in using https://aws.amazon.com/cdk/ https://aws.amazon.com/cdk/ to generate arbitrary CloudFormation templates from a mature programming language.
I’ve occasionally done the same with Terraform, writing Python or Groovy to generate Terraform-flavored JSON rather than hand-write HCL templates that would be too verbose to understand and maintain (looking at you, DynamoDB autoscaling).
- mdaniel 3y agoMy heartburn with the CDK is that it wants to run any such generated CFN, whereas I want it to render any such CFN, the way that troposphere works. Because the quick-create URL that one can give to any potential consumer of the CFN template does not accept CDK code, and "ok, just open a terminal and ..." is the mind-killer for getting other people to deploy something. That's the way GCP thinks about the world and is indescribably painful If terraform or CDK or tf-cdk work for projects, more power to them, but they are for sure not replacements for each other