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
WCM in TOKYO with Developers Guild LT資料
Search
179Bell
June 25, 2022
440
0
Share
WCM in TOKYO with Developers Guild LT資料
179Bell
June 25, 2022
More Decks by 179Bell
See All by 179Bell
目的ドリブン_LT資料_.pdf
179bell
0
120
Featured
See All Featured
Between Models and Reality
mayunak
3
280
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
270
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
290
Evolving SEO for Evolving Search Engines
ryanjones
0
190
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.4k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
770
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
110
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
Speed Design
sergeychernyshev
33
1.6k
sira's awesome portfolio website redesign presentation
elsirapls
0
230
Transcript
Terraformについてアウトプットする すずむら(@179Bell) WCM in TOKYO with Developers Guild
• 自己紹介 • Terraformとは • CFn VS Terraform • コードからAWSへデプロイされる流れ
• 実際にリソースをデプロイしてみる • まとめ アジェンダ
Terraformとは HashiCorp社が提供するマルチクラウド上のコンピュータやネットワー クの構築を自動化するツール(IaC) ※IaC … Infrastructure as Code
CloudFormation VS Terraform CloudFromation Terraform 記述形式 JSON Yaml HCL(HashiCorp Configuration Language)
ソースコード Closed Open 対応リソース AWSのみ AWS、Azure、GCP etc… 実行環境 AWS上 ローカル 排他制御 あり なし バージョン管理 なし あり
Terraformのコードからデプロイされる仕組み main.tf terraform apply API コール provider
ざっくりとVPCを立ててみます
Terraformライフサイクル terraform init ↓ terraform plan ↓ terraform apply ↓
terraform destroy
構築したいリソースを定義したファイルのあるディレクトリでコマンドを実行す ることでコードが読み込まれて以降のコマンドが実行できるようになる。
Terraformライフサイクル terraform init ↓ terraform plan ↓ terraform apply ↓
terraform destroy
✅作成されるリソースの情報が表示され、 差分がある場合は差分の確認をすることが できます。
Terraformライフサイクル terraform init ↓ terraform plan ↓ terraform apply ↓
terraform destroy
terraform applyコマンドで実際にリソースが 作成される
Terraformライフサイクル terraform init ↓ terraform plan ↓ terraform apply ↓
terraform destroy
使ってみた感想 • CFnよりもコードが見やすい • 配列や三項演算子、データの型があるためプログラミング言語に近いイメー ジしやすい • 複数のリソースを一度に作れるので便利 • 日本語の情報少なすぎて驚き
参考図書 OREILLY Terraform Up & Running ※全部英語です
ご清聴ありがとうございました!