-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
172 lines (149 loc) · 8.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<html>
<head>
<title>Blast Radius</title>
<meta charset="utf-8">
<script src="/blast-radius-docs/static/js/jquery.slim.min.js"></script>
<script src="/blast-radius-docs/static/js/bootstrap.min.js"></script>
<script src="/blast-radius-docs/static/js/fontawesome-all.min.js"></script>
<script src="/blast-radius-docs/static/js/d3.v4.js"></script>
<script src="/blast-radius-docs/static/js/d3-tip.js"></script>
<script src="/blast-radius-docs/static/js/blast-radius.js"></script>
<script src="/blast-radius-docs/static/js/categories.js"></script>
<script src="/blast-radius-docs/static/js/svg-pan-zoom.js"></script>
<script src="/blast-radius-docs/static/js/selectize.js"></script>
<link rel="stylesheet" type="text/css" href="/blast-radius-docs/static/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/blast-radius-docs/static/css/selectize.css">
<link rel="stylesheet" type="text/css" href="/blast-radius-docs/static/css/style.css">
<style>
body {
padding-top: 55px;
}
.navbar-nav > li {
padding-left:6px;
}
.navbar-brand {
font-family: 'courier new';
}
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-99802310-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-99802310-1');
</script>
</head>
<body>
<nav class="navbar fixed-top navbar-expand bg-light">
<ul class="navbar-nav">
<li class="nav-item"><a class="navbar-brand" href="/blast-radius-docs/">Blast Radius</a></li>
<li class="nav-item">
<form class="form-inline my-2 my-lg-0" id="graph-search-form" >
<select style="width: 400px;" id="graph-search"></select>
</form>
</li>
<li class="nav-item">
<button class="btn btn-primary" id="graph-zoom-out" title="zoom out"> <i class="fas fa-search-minus"></i></button>
</li>
<li class="nav-item">
<button class="btn btn-primary" id="graph-zoom-in" title="zoom in"> <i class="fas fa-search-plus"></i></button>
</li>
<li class="nav-item">
<button class="btn btn-primary" id="graph-download" title="download svg"> <i class="fas fa-download"></i></button>
</li>
<li class="nav-item">
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="tooltip options">
<i class="fas fa-magic"></i>
</button>
<div class="dropdown-menu">
<div class="dropdown-item">
<label><b>Tooltip Options</b></label>
</div>
<div class="dropdown-divider"></div>
<!-- Resource Name-->
<div class="dropdown-item form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="" id="graph-tooltip-title" checked>
Resource Name
</label>
</div>
<!-- JSON-->
<div class="dropdown-item form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="" id="graph-tooltip-json" checked>
JSON Definition
</label>
</div>
<!-- Immediate Dependencies-->
<div class="dropdown-item form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="" id="graph-tooltip-deps" checked>
Dependencies
</label>
</div>
</div>
</div>
</li>
</ul>
</nav>
<div class="container">
<!--<h1>Blast Radius</h1>-->
<p><a href="https://www.github.com/28mm/blast-radius"><i>Blast Radius</i></a> is a tool for reasoning about <a href="https://www.terraform.io"><i>Terraform</i></a> dependency graphs through interactive visualizations. Use <i>Blast Radius</i> to:</p>
<ol>
<li>Learn about Terraform or one of its cloud providers, through <a href="/blast-radius-docs/examples">example configurations</a></li>
<li>Document your infrastructure.</li>
<li>reason about relationships between resources, and evaluate changes to them.</li>
</ol>
<h3>Online Examples</h3>
<p></p>
<ol>
<li><a href="/blast-radius-docs/examples/terraform-provider-aws">Amazon Web Services</a></li>
<li><a href="/blast-radius-docs/examples/terraform-provider-azurem">Azure</a></li>
<li><a href="/blast-radius-docs/examples/terraform-provider-digitalocean">Digital Ocean</a></li>
<li><a href="/blast-radius-docs/examples/terraform-provider-google">Google</a></li>
<li><a href="/blast-radius-docs/examples/terraform-provider-kubernetes">Kubernetes (k8s)</a></li>
<li><a href="/blast-radius-docs/examples/terraform-provider-openstack">OpenStack</a></li>
</ol>
<h3>For Instance</h3>
<p>Below is a typical (small) <i>Terraform</i> configuration: enough to launch a single web server and elastic load balancer. Use the searchbox or mouse to highlight a resource of interest, and its dependencies. Click again to dismiss the tooltip, and highlight dependents.</p>
</div>
<div class="container-fluid">
<div id="graph"></div>
</div>
<div class="container">
<h3>Quickstart</h3>
<p class="descr">Install blastradius with pip, and Graphviz with e.g. Homebrew.</p>
<div class="code"><code>[...]$ pip3 install blastradius
[...]$ brew install graphviz</code></div>
<p class="descr">Point Blast Radius at an init-ed Terraform project, and connect with your browser.</p>
<div class="code"><code>[...]$ blast-radius --serve /path/to/terraform-project
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)</code></div>
<h3>Further Reading</h3>
<p>I've been writing about the development of <i>Blast Radius</i> in a series of blog posts:</p>
<ul>
<li><a href="https://28mm.github.io/notes/d3-terraform-graphs">part one</a> d3 force-directed layouts vs. vanilla graphviz.</li>
<li><a href="https://28mm.github.io/notes/d3-terraform-graphs-2">part two</a> d3-enhanced graphviz layouts, meaningful coloration, animations.</li>
<li><a href="https://28mm.github.io/notes/terraform-graphs-3">part three</a> limiting horizontal sprawl, supporting modules.</li>
<li><a href="https://28mm.github.io/notes/d3-terraform-graphs-4">part four</a> search, pan/zoom, prune-to-selection, docker.</li>
</ul>
<p>Source is hosted on <a href="http://www.github.com/28mm/blast-radius">GitHub</a>, as is issue reporting.</p>
<h3>About the Author</h3>
<p>Patrick McMurchie (<a href="mailto:[email protected]">email</a>, <a href="https://28mm.github.io/about">about</a>) is a Seattle-resident DevOps Engineer and bicycle enthusiast.</p>
<ul><li>Read more about me <a href="https://28mm.github.io/about">here.</a></li>
<li>Offers of beer met with great favor.</p></li>
</ul>
<p> </p>
</div><!-- end container -->
<nav class="navbar fixed-bottom navbar-expand bg-light">
<ul class="navbar-nav">
<li class="nav-item"><iframe src="https://ghbtns.com/github-btn.html?user=28mm&repo=blast-radius&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe></li>
</ul>
</nav>
</body>
<script>
var br_state = { '#graph' : { 'no_scroll_zoom' : true } };
blastradius('#graph', '/blast-radius-docs/examples/terraform-provider-aws/two-tier/graph.svg', '/blast-radius-docs/examples/terraform-provider-aws/two-tier/graph.json', br_state);
</script>
</html>