Does anybody researched tools to generate architec...
# general
a
Does anybody researched tools to generate architecture diagrams from CF/CDK? Just found this one, looking if anybody else knows others: https://github.com/pistazie/cdk-dia
r
I've used cfn-dia with draw.io with CloudFormation output from serverless framework which works quite well I imagine you can do something similar with CDK. Command to get it to do its thing is a bit convoluted so here it is
Copy code
sls package && cfn-dia <http://draw.io|draw.io> -t ./.serverless/cloudformation-template-update-stack.json -o diagrams/diagram.drawio -c && drawio diagrams/diagram.drawio -o diagrams/diagram.png && cfn-dia html -t ./.serverless/cloudformation-template-update-stack.json -o diagrams
a
Yeah, using this lib with CF output files works fine.