-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
254 lines (239 loc) · 9.37 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>AWS CDK And AWS Lambda Workshop</title>
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/reveal.css" />
<link rel="stylesheet" href="css/theme/solarized.css" />
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/monokai.css" />
<style>
div.footer {
position: fixed;
bottom: 25px;
left: 25px;
z-index: 999;
}
div.footer>div {
display: flex;
flex-direction: row;
}
div.footer>div>a {
padding-top: 8px;
padding-left: 8px;
}
html.low-opacity .slide-background {
opacity: 0.1 !important;
}
html.middle-opacity .slide-background {
opacity: 0.5 !important;
}
.stress {
color: red;
}
</style>
<!-- Printing and PDF exports -->
<script>
var link = document.createElement("link");
link.rel = "stylesheet";
link.type = "text/css";
link.href = window.location.search.match(/print-pdf/gi)
? "css/print/pdf.css"
: "css/print/paper.css";
document.getElementsByTagName("head")[0].appendChild(link);
</script>
</head>
<body>
<div class="footer">
<div>
<img src="asset/consol.png" />
<a href="https://www.consol.de" target="_blank">www.consol.de</a>
</div>
</div>
<div class="reveal">
<div class="slides">
<section data-background="asset/pero-kalimero-9BJRGlqoIUk-unsplash.jpg">
<h2>AWS CDK</h2>
<h2>And</h2>
<h2>AWS Lambda</h2>
<h2>Workshop</h2>
</section>
<section data-background="asset/todd-quackenbush-IClZBVw5W5A-unsplash.jpg" data-state="low-opacity">
<h2>Prerequisites</h2>
<h5>General</h5>
<ul>
<li>
AWS account
<br />
<small>(Captain Obvious nods his head approvingly)</small>
</li>
<li>
AWS CLI:
<a href="https://docs.aws.amazon.com/en_pv/cli/latest/userguide/install-windows.html"
target="_blank">Windows</a>,
<a href="https://docs.aws.amazon.com/en_pv/cli/latest/userguide/install-linux.html"
target="_blank">Linux</a>,
<a href="https://docs.aws.amazon.com/en_pv/cli/latest/userguide/install-macos.html" target="_blank">Mac</a>
</li>
<li>
AWS
<a href="https://console.aws.amazon.com/iam/home#/security_credentials" target="_blank">access key</a>
<br />
<small>(for AWS CLI)</small>
</li>
<li>
<a href="https://git-scm.com/downloads" target="_blank">git</a>
</li>
<li>
<a href="https://code.visualstudio.com/Download" target="_blank">Visual Studio Code</a>
<br />
<small>or any other IDE or text editor with Typescript support</small>
</li>
</ul>
</section>
<section data-background="asset/todd-quackenbush-IClZBVw5W5A-unsplash.jpg" data-state="low-opacity">
<h2>Prerequisites</h2>
<h5>Linux</h5>
<ul>
<li>
Latest version of Node.js
<br />
<small>hint: use
<a href="https://github.com/nvm-sh/nvm" target="_blank">nvm</a></small>
</li>
<li>
AWS CDK:
<pre><code class="bash" data-trim>npm install -g [email protected]</code></pre>
</li>
</ul>
</section>
<section data-background="asset/todd-quackenbush-IClZBVw5W5A-unsplash.jpg" data-state="low-opacity">
<h2>Prerequisites</h2>
<h5>Other Platforms</h5>
<ul>
<li>
All roads lead to
<span style="text-decoration: line-through;">Rome</span> Linux :)
</li>
<li>
Because some of the AWS CDK libraries might not work under a
non-Linux platform (e.g.
<a href="https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html#development"
target="_blank">this one</a>)
</li>
<li>
Maybe they'll work under Mac (since it's Unix-like platform) but
I'm not sure
</li>
</ul>
</section>
<section data-background="asset/todd-quackenbush-IClZBVw5W5A-unsplash.jpg" data-state="low-opacity">
<h2>Prerequisites</h2>
<h5>Other Platforms</h5>
<p>
Suggested <a href="https://github.com/ConSol/aws-cdk-and-lambda-workshop/tree/master/aws-ec2-dev-env"
target="_blank">workaround</a>:
</p>
<ol>
<li>Launch an EC2 instance with all the necessary tooling and SSH into it</li>
<li>Edit code locally in your favorite IDE</li>
<li>Commit and push changes</li>
<li>From within the EC2 instance:
<ol>
<li>pull the changes</li>
<li>run CDK commands</li>
</ol>
</li>
</ol>
</section>
<section data-background="asset/todd-quackenbush-IClZBVw5W5A-unsplash.jpg" data-state="middle-opacity">
<h2>Gear Up!</h2>
<small>
<a href="https://github.com/ConSol/aws-cdk-and-lambda-workshop/tree/master/aws-ec2-dev-env"
target="_blank">workaround link</a>
</small>
</section>
<section data-background="asset/infrastructure.jpg" data-state="low-opacity">
<h2>Infrastructure As Code</h2>
<h5>General Idea</h5>
<p>
Cloud <span class="stress">resources</span> (RDS / S3 storage / VPC network configuration / EC2 launch
configurations etc.) are described
in (usually) human-readable text files which are stored in a git <span class="stress">repository</span> and
are
therefore <span class="stress">versioned</span>.
</p>
<p>
A special <span class="stress">tool</span> reads the files (e.g. during a CI/CD pipeline run) and provisiones
the defined infrastructure.
</p>
</section>
<section data-background="asset/infrastructure.jpg" data-state="low-opacity">
<h2>Infrastructure As Code</h2>
<h5>Why?</h5>
<ul>
<li><span class="stress">Repository</span> => streamline GitOps <small>infrastructure can be
committed/reviewed/merged/tagged/etc.</small></li>
<li><span class="stress">Versioning</span> => track changes, do "time travel"</li>
<li><span class="stress">Tool</span> => minimize human factor
<small>e.g. get rid of typos during manual provisioning</small></li>
<li><span class="stress">Tool</span> => automation => faster iterations <small>have more time for development
and other important job</small></li>
</ul>
</section>
<section data-background="asset/infrastructure.jpg" data-state="low-opacity">
<h2>Infrastructure As Code</h2>
<h5>How?</h5>
<ul>
<li>Bash scripting (Early Middle Ages)</li>
<li>Pythong scripting using <a href="https://boto3.amazonaws.com/v1/documentation/api/latest/index.html"
target="_blank">boto3</a> (Late Middle Ages)
</li>
<li><a href="https://aws.amazon.com/cloudformation/" target="_blank">CloudFormation</a> (Industrial Age)</li>
<li><a href="https://docs.aws.amazon.com/cdk/index.html" target="_blank">Cloud Development Kit</a> (Future)
</li>
</ul>
</section>
<section data-background="asset/infrastructure.jpg" data-state="middle-opacity">
<h2>
Let's <a href="https://docs.aws.amazon.com/en_pv/cdk/latest/guide/home.html" target="_blank">RTFM</a> a
Little Bit</h2>
</section>
<section data-background="asset/randy-fath-ymf4_9Y9S_A-unsplash.jpg" data-state="low-opacity">
<h2>What we'll build</h2>
<img data-src="asset/example-cdk-lambda-app.png">
</section>
<section data-background="asset/randy-fath-ymf4_9Y9S_A-unsplash.jpg" data-state="low-opacity">
<h2>What we'll build</h2>
<p>The final result is <a href="https://github.com/ConSol/aws-cdk-and-lambda-workshop" target="_blank">here</a>.
</p>
<p>However, as the Arthur Ashe put it:</p>
<blockquote cite="https://www.brainyquote.com/quotes/arthur_ashe_371528">
Success is a journey, not a destination. The doing is often more important than the outcome.
</blockquote>
</section>
<section data-background="asset/randy-fath-ymf4_9Y9S_A-unsplash.jpg" data-state="middle-opacity">
<h2>Let's build it</h2>
<smal>we'll need the web UI from the <a href="https://github.com/ConSol/aws-cdk-and-lambda-workshop"
target="_blank">final result</a> though :)</smal>
</section>
</div>
</div>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
dependencies: [
{ src: "plugin/markdown/marked.js" },
{ src: "plugin/markdown/markdown.js" },
{ src: "plugin/notes/notes.js", async: true },
{ src: "plugin/highlight/highlight.js", async: true }
]
});
</script>
</body>
</html>