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
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
WCM in TOKYO with Developers Guild LT資料
179Bell
June 25, 2022
More Decks by 179Bell
See All by 179Bell
目的ドリブン_LT資料_.pdf
179bell
0
140
Featured
See All Featured
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
460
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Darren the Foodie - Storyboard
khoart
PRO
3
3.6k
RailsConf 2023
tenderlove
30
1.5k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.9k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
450
Leo the Paperboy
mayatellez
8
2.1k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Being A Developer After 40
akosma
91
590k
Practical Orchestrator
shlominoach
191
12k
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 ※全部英語です
ご清聴ありがとうございました!