Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iann0036/tree-view-cfn
Force CloudFormation to generate a tree view for any stack
https://github.com/iann0036/tree-view-cfn
aws aws-cloudformation cloudformation
Last synced: 3 months ago
JSON representation
Force CloudFormation to generate a tree view for any stack
- Host: GitHub
- URL: https://github.com/iann0036/tree-view-cfn
- Owner: iann0036
- License: mit
- Created: 2022-09-14T09:19:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-14T23:41:25.000Z (over 2 years ago)
- Last Synced: 2024-10-04T13:33:10.251Z (4 months ago)
- Topics: aws, aws-cloudformation, cloudformation
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 18
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TreeViewCFN
Force CloudFormation to generate a tree view for any stack.
![](https://raw.githubusercontent.com/iann0036/iann0036/master/static/treeview.png)
> **Warning**
> This script will convert your templates to JSON. You should ensure you have a source template backup if using YAML.## Usage
To convert a local file and output the result to console:
```
python3 convert.py --filename mystack.yaml
```Or, to convert a deployed CloudFormation stack:
```
python3 convert.py --stack MyStack
```### Options
```
usage: convert.py [-h] (--filename FILENAME | --stack STACK) [--region REGION] [--profile PROFILE]Converts templates or stacks to be tree-view compliant
optional arguments:
-h, --help show this help message and exit
--filename FILENAME The filename of a local template you wish to convert, will output to console
--stack STACK The stack name of a remote stack you wish to convert, will update in place
--region REGION (optional) The region name to use when polling remote stacks
--profile PROFILE (optional) The profile name to use when polling remote stacks
```