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
Orbsから始めるTerraform生活/ terraform-life-starting-f...
Search
Mafuyu Kamono
March 16, 2019
Programming
2
680
Orbsから始めるTerraform生活/ terraform-life-starting-from-orbs
TerraformのCI/CDフローについてのお話
https://github.com/mafuyuk/terraform-orb
Mafuyu Kamono
March 16, 2019
Tweet
Share
More Decks by Mafuyu Kamono
See All by Mafuyu Kamono
GAE 2nd gen (gVisor based GAE) が出たので GAE 導入を決めました/ GAE 2nd gen is good
mfykmn
0
300
GAE SE 2nd Genのススメ/recommend-gae-se-2nd-gen
mfykmn
0
280
忙しいひとのためのCQRS/quickly-cqrs
mfykmn
9
1.5k
Other Decks in Programming
See All in Programming
はじめてのWeb API体験 ー 飲食店検索アプリを作ろうー
akinko_0915
0
180
リバースエンジニアリング新時代へ! GhidraとClaude DesktopをMCPで繋ぐ/findy202507
tkmru
4
1.6k
「次に何を学べばいいか分からない」あなたへ──若手エンジニアのための学習地図
panda_program
3
680
大規模FlutterプロジェクトのCI実行時間を約8割削減した話
teamlab
PRO
0
280
JetBrainsのAI機能の紹介 #jjug
yusuke
0
160
SQLアンチパターン第2版 データベースプログラミングで陥りがちな失敗とその対策 / Intro to SQL Antipatterns 2nd
twada
PRO
35
10k
#QiitaBash TDDで(自分の)開発がどう変わったか
ryosukedtomita
1
180
バイブスあるコーディングで ~PHP~ 便利ツールをつくるプラクティス
uzulla
1
300
新しいモバイルアプリ勉強会(仮)について
uetyo
1
230
CDK引数設計道場100本ノック
badmintoncryer
2
590
Understanding Kotlin Multiplatform
l2hyunwoo
0
240
構文解析器入門
ydah
7
1.9k
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
54
13k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.9k
How STYLIGHT went responsive
nonsquared
100
5.7k
Building Adaptive Systems
keathley
43
2.7k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
2.9k
Six Lessons from altMBA
skipperchong
28
3.9k
Adopting Sorbet at Scale
ufuk
77
9.5k
The Language of Interfaces
destraynor
158
25k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
770
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
400
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.5k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
Transcript
© DMM.com CONFIDENTIAL © DMM.com Orbsから始めるTerraform生活 加茂野真冬 - DMM.com LLC
2019.03.16 HashiCorp Terraform & Vault Enterprise 勉強会 in 金沢
© DMM.com 今日話すこと 2 TerraformによるインフラのCI/CD パイプラインについて話します
© DMM.com 今日話さないこと 3 • 他ツールとの比較 • Terraformの基礎知識
© DMM.com 4 $ cat about-me.tf data { fullname =
"Mafuyu Kamono" orgnization = "DMM.com LLC" position = "Backend Engineer" detail = "https://mafuyuk.com" twitter-id = "@mafuyuk_m" }
© DMM.com Infrastructure as Code 5 • インフラをコードとして管理できる • ソフトウェア開発で培われてきた
プラクティスがインフラ構築でも適用できる
© DMM.com DevOps 6 https://ja.wikipedia.org/wiki/DevOps
© DMM.com DevOps 7 https://ja.wikipedia.org/wiki/DevOps
© DMM.com TerraformのCI/CDパイプライン 8 branch/feature Verify branch/master tag/vx.x.x Plan Apply
Approval Admin
© DMM.com TerraformのCI/CDパイプライン 9 branch/feature Verify branch/master tag/vx.x.x Plan Apply
Approval Admin 毎回同じようなもの を作ってるな...
© DMM.com 10 CI/CDの パッケージマネージャ
© DMM.com 11 https://www.terraform.io/docs/github-actions/getting-started/index.html Terraform Github Actions
© DMM.com Github Actionsを今回使わなかった理由 12 • Github Actionsの利用申請がまだ承認 されていないため使えなかった •
Privateリポジトリでしか使えない • TerraformのGithub Actionsが CIの部分までしかない
© DMM.com CircleCI Orbsとは? • CircleCIのパッケージマネージャ • 再利用性を高めることができる • CircleCI
version 2.1からの機能 13 https://circleci.com/orbs/
© DMM.com 14 https://circleci.com/orbs/registry/orb/mafuyuk/terraform https://github.com/mafuyuk/terraform-orb Terraform Orb
© DMM.com 15 https://circleci.com/orbs/registry/orb/mafuyuk/terraform#usage-continuous-integration Terraform Orb: 継続的インテグレーション
© DMM.com 16 https://circleci.com/orbs/registry/orb/mafuyuk/terraform#usage-continuous-delivery Terraform Orb: 継続的デリバリ
© DMM.com 17 https://circleci.com/orbs/registry/orb/mafuyuk/terraform#usage-deploy Terraform Orb: 継続的デプロイメント
© DMM.com 18 Terraform Orb作成時に意識していたこと • ベターなフローを用意する - Running Terraform
in Automation - Terraform Best Practices • 細かい部分はOrbにカプセル化しユーザーはフロー のみ意識できるようにする • カスタマイズ性を高く
© DMM.com 19 是非使ってみてください
© DMM.com 20 気になる内容は気軽にissuieや DM、PR投げてください! 一緒に作っていきましょう!
© DMM.com まとめ 21 • Terraform+αでインフラ構築を更に 加速できる • Orbを導入してTerraformのCI/CDパ イプライン構築を簡単にできるように
した
© DMM.com 22 Terraform周りの便利ツール(おまけ) • https://github.com/gruntwork-io/terratest テストツール • https://github.com/coinbase/terraform-landscape terraform
planの出力を見やすくする • https://github.com/wata727/tflint planでは検知できないエラーを事前に検知できる • https://github.com/camptocamp/terraboard stateのモニタリング • https://github.com/tfutils/tfenv ローカルでのterraform version管理ツール
© DMM.com 23 END. ここから、Orbsから始めよう。 Terraformの物語を。 Orbsから始めるTerraform生活を!