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
Pulumi de Azure IaC
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
dora56
May 13, 2023
Technology
160
0
Share
Pulumi de Azure IaC
Azure Globalの登壇資料です。
dora56
May 13, 2023
More Decks by dora56
See All by dora56
Azure Container Apps 再入門
dora56
1
690
ASP.NET8 CoreでClean Architecture入門
dora56
1
950
C#で関数型プログラミング
dora56
1
1.4k
5分でわかった気になるDDD
dora56
0
92
Other Decks in Technology
See All in Technology
JEP 522 Deep Dive - G1 GC同期コスト削減によるスループット向上を徹底検証&解説
tabatad
1
490
GitHub Copilot CLIでWebアクセシビリティを改善した話
tomokusaba
0
140
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
1.8k
「コーディング」しない人のための Claude Code 入門 ChatGPT の次の一歩 — 業務に組み込む 育成・共有・自動化
rfdnxbro
2
570
GoとSIMDとWasmの今。
askua
1
320
Kiro CLI v2.0.0がやってきた!
kentapapa
0
250
Claude Codeですべての日常業務を爆速化しよう!
minorun365
PRO
17
16k
AIが変えた"品質の守り方"
kkakizaki
13
5.5k
電子辞書Brainをネットに繋げてみた(自力編)
raspython3
0
390
サプライチェーンセキュリティの空白地帯 - 信頼できる”依存性”の未来を考える
rung
PRO
2
560
関西に縁あるMicrosoft MVPsが語るCopilotの未来
kasada
0
840
はじめてのDatadog
kairim0
0
240
Featured
See All Featured
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
200
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
44k
Tell your own story through comics
letsgokoyo
1
940
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
160
Between Models and Reality
mayunak
4
320
A Soul's Torment
seathinner
6
2.9k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
130
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
570
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Visualization
eitanlees
152
17k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
180
Transcript
Pulumi De Azure IaC Copyright © Alterbooth Inc. All Rights
Reserved. 1 Azure Global 2023
花岡⿓ 役職︓エンジニア 趣味︓読書 資格︓ CKA, DevOps Engineer Expert, Azure Developer
Associate, 認定スクラムマスター,GitHub Copyright © Alterbooth Inc. All Rights Reserved. 2
• Pulumiとは • Pulumiのコンセプト • BicepやTerraformとの違い • Pulumiの基本的なコマンド • デモ
• Tips • GitHub Copilot • Pulumi AI アジェンダ Copyright © Alterbooth Inc. All Rights Reserved. 3
Pulumiとは︖ • 既存のプログラミング⾔語(Python,TypeScript,Go,C#など)を使⽤して Infrastructure as Code(IaC)ができるツール • モジュール化による再利⽤性や⾔語ごとのライブラリ、SDKを利⽤可能 • 既存のテストツールを使ってテストコードを書くことができる
• AWS,Azure,GCP,KubernetesのAPIカバレッジ率100% Copyright © Alterbooth Inc. All Rights Reserved. 4
BicepやTerraformとの違い • Bicep • ARM Templeteのラッパー⾔語 • 状態管理はせず増分デプロイ • Terraform
• HCLというドメイン特化⾔語 • ローカルまたはTerraform Cloud ⽐較対象 Pulumi Terraform Bicep ⾔語 .NET Python Go など HCL(DSL) DSL 学習コスト 低 中 中 状態管理 ◦ ◦ × ARM REST API サポート ◦ △ ◦ ドキュメント △ ◦ ◦ Copyright © Alterbooth Inc. All Rights Reserved. 5
Pulumiのコンセプト • プロジェクト︓プログラムのソースコードと 実⾏⽅法のメタデータが含まれるディレクトリ • Program: ⼀般的なプログラミング⾔語で 書かれたクラウドインフラの構成 • Resource:
インフラリソースの望ましい状態を 記述したオブジェクト • Stack︓プログラムの独⽴した設定可能な インスタンス • クラウドの状態はStateと呼ばれるメタデータを Pulumi Cloudまたはオブジェクトストレージで管理 • 開発、ステージング、本番環境などの異なる スタックが利⽤可能 Copyright © Alterbooth Inc. All Rights Reserved. 6 Intro to Pulumi: Architecture & Concepts | Pulumi Docs
• Pulumi プロジェクトの作成(C#の場合) • mkdir first-project && cd first-project •
pulumi new azure-csharp • Stackへデプロイ • pulumi up • Stackのインフラリソース全削除 • pulumi destroy • リソース変更のプレビュー • pulumi preview • Stackの管理 • pulumi stack • Pulumi CLI Overview | Pulumi Docs 基本的なPulumiのコマンド Copyright © Alterbooth Inc. All Rights Reserved. 7
Demo dora56/PulumiSamples: PulumiSamples (github.com) Copyright © Alterbooth Inc. All Rights
Reserved. 8
• PulumiでAzureインフラ構築 • WebAppとSQL Serverを⽴てる • WebAppのリソース削除 • Production環境のStackを追加 •
テストコードの実⾏ Demoでやること Copyright © Alterbooth Inc. All Rights Reserved. 9 AppServicePlan App Service SQL Server Application Insight
Tips: GitHub Copilot Copilotを使うとPulumiの補完候補を出してくれる Copyright © Alterbooth Inc. All Rights
Reserved. 10
https://www.pulumi.com/ai/ Tips: Pulumi AI Copyright © Alterbooth Inc. All Rights
Reserved. 11
• Pulumiは既存のプログラミング⾔語でインフラ構築ができるツール • 既存のテストツールでテストコードを書くことができる • エディタはVisual Studio, VS Code, Riderなどお好みのものが使える
• AIの⽀援でIaCがやりやすくなった • Pulumiで Infrastracture as Codeに挑戦してみよう︕ Summary Copyright © Alterbooth Inc. All Rights Reserved. 12