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
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
860
C#で関数型プログラミング
dora56
1
1.3k
5分でわかった気になるDDD
dora56
0
80
Other Decks in Technology
See All in Technology
AI開発の落とし穴 〜馬には乗ってみよAIには添うてみよ〜
sansantech
PRO
9
3.9k
【Oracle Cloud ウェビナー】ランサムウェアが突く「侵入の隙」とバックアップの「死角」 ~ 過去の教訓に学ぶ — 侵入前提の防御とデータ保護 ~
oracle4engineer
PRO
2
220
AI Agent Standards and Protocols: a Walkthrough of MCP, A2A, and more...
glaforge
1
560
The Engineer with a Three-Year Cycle
e99h2121
0
170
Vivre en Bitcoin : le tutoriel que votre banquier ne veut pas que vous voyiez
rlifchitz
0
360
「AIでできますか?」から「Agentを作ってみました」へ ~「理論上わかる」と「やってみる」の隔たりを埋める方法
applism118
5
4.1k
AI時代にあわせたQA組織戦略
masamiyajiri
5
2.5k
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
10k
M5Stack Chain DualKey を UIFlow 2.0 + USB接続で試す / ビジュアルプログラミングIoTLT vol.22
you
PRO
2
120
漸進的過負荷の原則
sansantech
PRO
3
390
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
72k
ドメイン駆動セキュリティへの道しるべ
pandayumi
0
180
Featured
See All Featured
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.8k
Chasing Engaging Ingredients in Design
codingconduct
0
100
Optimizing for Happiness
mojombo
379
71k
RailsConf 2023
tenderlove
30
1.3k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
58
42k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
57
New Earth Scene 8
popppiees
1
1.4k
How STYLIGHT went responsive
nonsquared
100
6k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
52
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
270
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
100
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