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
Paper Plane
katiecoart
PRO
4
53k
Between Models and Reality
mayunak
4
480
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Practical Orchestrator
shlominoach
192
12k
WCS-LA-2024
lcolladotor
0
840
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
440
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
540
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
530
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
The agentic SEO stack - context over prompts
schlessera
0
950
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
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 ※全部英語です
ご清聴ありがとうございました!