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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
179Bell
June 25, 2022
0
430
WCM in TOKYO with Developers Guild LT資料
179Bell
June 25, 2022
Tweet
Share
More Decks by 179Bell
See All by 179Bell
目的ドリブン_LT資料_.pdf
179bell
0
110
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
34
9.1k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
GraphQLとの向き合い方2022年版
quramy
50
14k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
440
For a Future-Friendly Web
brad_frost
182
10k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Git: the NoSQL Database
bkeepers
PRO
432
66k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
Mind Mapping
helmedeiros
PRO
0
90
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
120
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 ※全部英語です
ご清聴ありがとうございました!