Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Automating Infrastructure with AWS CDK
Search
Rumesh Eranga Hapuarachchi
September 15, 2021
Programming
0
50
Automating Infrastructure with AWS CDK
Rumesh Eranga Hapuarachchi
September 15, 2021
Tweet
Share
More Decks by Rumesh Eranga Hapuarachchi
See All by Rumesh Eranga Hapuarachchi
AWS 101
rehrumesh
0
180
Getting the most out of Serverless
rehrumesh
1
73
Building multi-tenant solutions on AWS
rehrumesh
0
55
Cloud 101
rehrumesh
0
40
Other Decks in Programming
See All in Programming
リリース時」テストから「デイリー実行」へ!開発マネージャが取り組んだ、レガシー自動テストのモダン化戦略
goataka
0
130
JETLS.jl ─ A New Language Server for Julia
abap34
1
370
Microservices rules: What good looks like
cer
PRO
0
1.3k
バックエンドエンジニアによる Amebaブログ K8s 基盤への CronJobの導入・運用経験
sunabig
0
150
大体よく分かるscala.collection.immutable.HashMap ~ Compressed Hash-Array Mapped Prefix-tree (CHAMP) ~
matsu_chara
1
220
【CA.ai #3】ワークフローから見直すAIエージェント — 必要な場面と“選ばない”判断
satoaoaka
0
240
AIコーディングエージェント(Gemini)
kondai24
0
210
AIエンジニアリングのご紹介 / Introduction to AI Engineering
rkaga
5
2k
AWS CDKの推しポイントN選
akihisaikeda
1
240
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
110
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
130
関数実行の裏側では何が起きているのか?
minop1205
1
690
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.6k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Language of Interfaces
destraynor
162
25k
Navigating Team Friction
lara
191
16k
Visualization
eitanlees
150
16k
A designer walks into a library…
pauljervisheath
210
24k
Practical Orchestrator
shlominoach
190
11k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Done Done
chrislema
186
16k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Transcript
Presented by Rumesh Hapuarachchi Automating Infrastructure with AWS CDK
None
None
Infrastructure as Code
Infrastructure as Code Repetable & Predictable Same tools as your
code Replicating environments for better testability
None
AWS Cloud Development Kit (AWS CDK)
Engineers love coding • Languages which they already know •
Java, JS, TS, Python, Go, C# • Existing tools & workflows • Abstractions • Libraries • Use logics when defining your infrastrucure
None
None
From code to cloud "Source" "Compiler" "Assembly Language" "Processor"" synthesize
deploy AWS CF CF Template CDK CLI
AWS CDK Main Components • Core Framework (App, Stacks, Resources)
• AWS Construct Library • AWS CDK CLI
Construct Levels Image Credits: Sebastian Korfmann
99x.io npm install -g aws-cdk
Commands • cdk init • cdk synth • cdk diff
• cdk deploy • cdk destroy
Let's Build Our First App
99x.io Testing?
Isn't that same as Jest? Testing with CDK • Snapshot
tests • Fine-grained assertions • Validation tests
Show me some code?
Best Practices • Layer your application to reduce blast radius
• Use multiple, isolated environments for dev, test, stage and prod • Smaller files • Make use of Parameter Store and Secrets Manager • Do not overengineer
Helpful Resources • https://cdkpatterns.com/ • https://github.com/cdk-patterns/serverless • https://docs.aws.amazon.com/cdk/api/latest/docs/aws- construct-library.html
99x.io Thank You rehrumesh
[email protected]