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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
650
ASP.NET8 CoreでClean Architecture入門
dora56
1
870
C#で関数型プログラミング
dora56
1
1.3k
5分でわかった気になるDDD
dora56
0
81
Other Decks in Technology
See All in Technology
生成AIを活用した音声文字起こしシステムの2つの構築パターンについて
miu_crescent
PRO
3
210
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
200
20260208_第66回 コンピュータビジョン勉強会
keiichiito1978
0
180
プロポーザルに込める段取り八分
shoheimitani
1
460
セキュリティについて学ぶ会 / 2026 01 25 Takamatsu WordPress Meetup
rocketmartue
1
310
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.4k
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
17k
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
2k
Digitization部 紹介資料
sansan33
PRO
1
6.8k
AWS Network Firewall Proxyを触ってみた
nagisa53
1
240
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
Oracle AI Database移行・アップグレード勉強会 - RAT活用編
oracle4engineer
PRO
0
100
Featured
See All Featured
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
320
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
It's Worth the Effort
3n
188
29k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
62
50k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
130
How GitHub (no longer) Works
holman
316
140k
From π to Pie charts
rasagy
0
120
The Art of Programming - Codeland 2020
erikaheidi
57
14k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
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