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
dora56
May 13, 2023
Technology
0
140
Pulumi de Azure IaC
Azure Globalの登壇資料です。
dora56
May 13, 2023
Tweet
Share
More Decks by dora56
See All by dora56
Azure Container Apps 再入門
dora56
1
640
ASP.NET8 CoreでClean Architecture入門
dora56
0
840
C#で関数型プログラミング
dora56
1
1.3k
5分でわかった気になるDDD
dora56
0
80
Other Decks in Technology
See All in Technology
[PR] はじめてのデジタルアイデンティティという本を書きました
ritou
0
740
Cloud WAN MCP Serverから考える新しいネットワーク運用 / 20251228 Masaki Okuda
shift_evolve
PRO
0
130
_第4回__AIxIoTビジネス共創ラボ紹介資料_20251203.pdf
iotcomjpadmin
0
170
Agentic AIが変革するAWSの開発・運用・セキュリティ ~Frontier Agentsを試してみた~ / Agentic AI transforms AWS development, operations, and security I tried Frontier Agents
yuj1osm
0
190
Oracle Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
3
260
「駆動」って言葉、なんかカッコイイ_Mitz
comucal
PRO
0
130
ルネサンス開発者を育てる 1on1支援AIエージェント
yusukeshimizu
0
130
人工知能のための哲学塾 ニューロフィロソフィ篇 第零夜 「ニューロフィロソフィとは何か?」
miyayou
0
320
ソフトウェアエンジニアとAIエンジニアの役割分担についてのある事例
kworkdev
PRO
1
360
Java 25に至る道
skrb
3
130
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
21k
ECS_EKS以外の選択肢_ROSA入門_.pdf
masakiokuda
1
120
Featured
See All Featured
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
330
The Cult of Friendly URLs
andyhume
79
6.7k
Exploring anti-patterns in Rails
aemeredith
2
220
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
43
The Spectacular Lies of Maps
axbom
PRO
1
410
My Coaching Mixtape
mlcsv
0
20
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Rails Girls Zürich Keynote
gr2m
95
14k
Getting science done with accelerated Python computing platforms
jacobtomlinson
0
88
Testing 201, or: Great Expectations
jmmastey
46
7.8k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Test your architecture with Archunit
thirion
1
2.1k
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