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
150
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
680
ASP.NET8 CoreでClean Architecture入門
dora56
1
930
C#で関数型プログラミング
dora56
1
1.4k
5分でわかった気になるDDD
dora56
0
90
Other Decks in Technology
See All in Technology
10サービス以上のメール到達率改善を地道に継続的に進めている話 / Continue to improve email delivery rates across multiple services
yamaguchitk333
6
1.6k
マンション備え付けのネットワークとLTE回線を組み合わせた ネットワークの安定化の考案
harutiro
1
120
2026年春のAgentCoreアプデ 細かいやつ全部まとめ
minorun365
3
220
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
100k
サンプリングは「作る」のか「使う」のか? 分散トレースのコストと運用を両立する実践的戦略 / Why you need the tail sampling and why you don't want it
ymotongpoo
4
170
生成AIはソフトウェア開発の革命か、ソフトウェア工学の宿題再提出なのか -ソフトウェア品質特性の追加提案-
kyonmm
PRO
2
880
100マイクロサービスのTerraform/Kubernetes管理地獄から抜け出すためのAI活用術
markie1009
0
140
試作とデモンストレーション / Prototyping and Demonstrations
ks91
PRO
0
200
なぜ、私がCommunity Builderに?〜活動期間1か月半でも選出されたワケ〜
yama3133
0
130
エンタープライズの厳格な制約を開発者に意識させない:クラウドネイティブ開発基盤設計/cloudnative-kaigi-golden-path
mhrtech
0
400
PdM・Eng・QAで進めるAI駆動開発の現在地/aidd-with-pdm-eng-qa
shota_kusaba
0
210
データモデリング通り #5オンライン勉強会: AIに『ビジネスの文脈』を教え込むデータモデリング
datayokocho
0
260
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.4k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
390
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
70
39k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Crafting Experiences
bethany
1
140
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
170
Why Our Code Smells
bkeepers
PRO
340
58k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.2k
Balancing Empowerment & Direction
lara
6
1.1k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Raft: Consensus for Rubyists
vanstee
141
7.4k
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