Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Build Your Cloud Infrastructure as Code With .N...
Search
Hossam Barakat
November 19, 2021
Programming
0
63
Build Your Cloud Infrastructure as Code With .Net Core - Build Stuff
Hossam Barakat
November 19, 2021
Tweet
Share
More Decks by Hossam Barakat
See All by Hossam Barakat
Kubernetes Blue-Green Deployment Made Easy with Argo Rollouts - ADDO
hossambarakat
0
89
Build Your Azure Infrastructure as Code With .NET Core - Azure Day
hossambarakat
0
32
Build Your Azure Infrastructure as Code With .Net Core - Global Azure 2021
hossambarakat
0
46
Practical Domain-Driven Design with EF Core - NDC London 2021
hossambarakat
0
240
Build Your Cloud Infrastructure as Code With .Net Core - ADDO 2020
hossambarakat
0
130
Practical Domain Driven Design With EFCore - NDC Sydney 2020
hossambarakat
0
130
Build Your Cloud Infrastructure as Code With .Net Core - NDC Porto 2020
hossambarakat
2
150
Kubernetes for Developers - All Day DevOps
hossambarakat
2
170
Secure your Kubernetes Containers - All Day DevOps
hossambarakat
0
120
Other Decks in Programming
See All in Programming
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
860
Signal-Based Data FetchingWith the New httpResource
manfredsteyer
PRO
0
140
Devinのメモリ活用の学びを自社サービスにどう組み込むか?
itarutomy
0
2k
SLI/SLOの設定を進めるその前に アラート品質の改善に取り組んだ話
tanden
3
790
サービスクラスのありがたみを発見したときの思い出 #phpcon_odawara
77web
4
510
Building Scalable Mobile Projects: Fast Builds, High Reusability and Clear Ownership
cyrilmottier
2
200
爆速スッキリ! Rspack 移行の成果と道のり - Muddy Web #11
dora1998
1
270
データベースエンジニアの仕事を楽にする。PgAssistantの紹介
nnaka2992
9
4.4k
安全に倒し切るリリースをするために:15年来レガシーシステムのフルリプレイス挑戦記
sakuraikotone
5
2.6k
DomainException と Result 型で作る型安全なエラーハンドリング
karszawa
0
860
小田原でみんなで一句詠みたいな #phpcon_odawara
stefafafan
0
270
プログラミング教育のコスパの話
superkinoko
0
130
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
6
370
Agile that works and the tools we love
rasmusluckow
328
21k
It's Worth the Effort
3n
184
28k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
12
640
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Automating Front-end Workflow
addyosmani
1369
200k
Product Roadmaps are Hard
iamctodd
PRO
52
11k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
102
19k
Designing for humans not robots
tammielis
251
25k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
17
1.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.4k
Transcript
Build Your Azure Infrastructure as Code With .NET Core Hossam
Barakat Engineering Manager at Willow @hossambarakat_ | www.hossambarakat.net
@hossambarakat_ Data Centers
@hossambarakat_ Rise of Cloud Computing
@hossambarakat_ How to provision cloud resources?
@hossambarakat_ Manual AKA Point and Click
@hossambarakat_ Manual AKA Point and Click
@hossambarakat_ Snowflake Servers
@hossambarakat_ Infrastructure as Code
@hossambarakat_ • Managing and provisioning cloud resources using code. Infrastructure
as Code
@hossambarakat_ Imperative: CLI commands and scripts
@hossambarakat_ Idempotency and error handling
@hossambarakat_ Declarative Infrastructure as Code
@hossambarakat_ Tool Declarative Infrastructure as Code Desired State Actual Resources
@hossambarakat_ • Azure Resource Manager • Terraform • Bicep •
AWS CloudFormation • Google Deployment Manager • … Declarative Infrastructure as Code tools
@hossambarakat_ • JSON, YAML, domain specific languages (DSLs),… Infrastructure as
Code tools
@hossambarakat_
@hossambarakat_ Enter Pulumi
@hossambarakat_ • Pulumi is an open source infrastructure as code
tool the lets you use real languages – C#, TypeScript, Go,… – to provision and manage cloud resources. What is Pulumi?
@hossambarakat_ • Control flow with loops and if conditions •
Abstraction with functions, classes, packages,… • Code sharing with package management (Nuget, npm,…) • Authoring with favourite IDEs, refactoring, code completion, static type checking • Testing with existing frameworks and tools Benefits
@hossambarakat_
@hossambarakat_ Pulumi Fundamentals
@hossambarakat_ Projects & Stacks web-app (Pulumi.yaml) Project $ pulumi new
Stacks $ pulumi stack init stackName Pulumi.<stack-name>.yaml Pulumi.yaml
@hossambarakat_ Configurations $ pulumi config set dbPassword S3cr37 config: serverless-app:dbPassword:
S3cr37 Pulumi.<stack-name>.yaml var config = new Pulumi.Config(); var password = config.Require("dbPassword"); Pulumi.cs
@hossambarakat_ Application architecture on Azure
@hossambarakat_
@hossambarakat_ But that would be imperative, right?
@hossambarakat_ How Pulumi Works State CLI and Engine AWS Azure
Kubernetes Providers Code Plan Apply new Resource()
@hossambarakat_ Continuous Deployment Infrastructure as Code Manual Review State
@hossambarakat_ GitHub Integration
@hossambarakat_ Summary
@hossambarakat_ Questions?
Thanks Hossam Barakat @hossambarakat_ www.hossambarakat.net