How can I render an Amazon States Language json to an image?

Viewed 411

Let's say I have a json representation of an AWS Step function state machine (Such as the provided example here: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html ). This can be visualised as seen on AWS when I check the definition, and can be rendered as well in the VSCode AWS Plugin. Is there a CLI utility/lib that can take this json and render it as an image on my local machine? I would prefer some solution using bash or python, but anything goes. (I want to include it in a generated documentation )

1 Answers

Options:

  • AWS Toolkit for Visual Studio Code uses this class to visualize the Amazon States Language.
  • There's an NPM module, aws-sfn-graph that can do it.

And, of course, you could build something yourself...

Related