Creating markdown description for cloud formation templates
the script needs a JSON file to create a description.
convert Yaml template with cfn-flip to Json
for eg:
cfn-flip vpc.yaml vpc.json
The script has no attributes this time. But you can change it into the script.
you can set:
- the path to JSON file
- type of markdown: classic or confluence
a = GetMarkdown('/tmp/test/test.json', 'confluence')
Type in your terminal
python cf-doc.py
You can find the example of a result of the script in example
folder.
The markdown is for confluence article. For adding this two tables to confluence article you need to :
- push plus button
- find markup and click it
- chose confluence type
- paste it into the filed of markdown