Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
WCM in TOKYO with Developers Guild LT資料
Search
179Bell
June 25, 2022
450
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
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
60k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
560
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
Practical Orchestrator
shlominoach
192
12k
GraphQLとの向き合い方2022年版
quramy
50
15k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
RailsConf 2023
tenderlove
30
1.6k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
630
Agile that works and the tools we love
rasmusluckow
331
22k
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 ※全部英語です
ご清聴ありがとうございました!