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
Orbsから始めるTerraform生活/ terraform-life-starting-f...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Mafuyu Kamono
March 16, 2019
Programming
730
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Orbsから始めるTerraform生活/ terraform-life-starting-from-orbs
TerraformのCI/CDフローについてのお話
https://github.com/mafuyuk/terraform-orb
Mafuyu Kamono
March 16, 2019
More Decks by Mafuyu Kamono
See All by Mafuyu Kamono
GAE 2nd gen (gVisor based GAE) が出たので GAE 導入を決めました/ GAE 2nd gen is good
mfykmn
0
340
GAE SE 2nd Genのススメ/recommend-gae-se-2nd-gen
mfykmn
0
300
忙しいひとのためのCQRS/quickly-cqrs
mfykmn
9
1.5k
Other Decks in Programming
See All in Programming
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
1
430
iOS開発×AI駆動開発 〜最近使って便利だったスキルの話〜
nogu66
0
140
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
490
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
360
Seeing Through Serverless: Observability for AWS Lambda with ADOT and CloudWatch Application Signals
seike460
PRO
1
130
XHTMLが残したもの
yosuke_furukawa
PRO
2
630
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
230
Hono + Inertia + React で LP を構築した話
oukayuka
2
220
Hello, Hiroshima Geospatial Data! — Exploring DoboX with Python
ra0kley
0
180
業務時間外もAIに働いてもらう話
colorful12
3
10k
ALB ログから Trace を気合で繋げる技術
fohte
7
880
Press start. Python's next generation.
willingc
PRO
3
330
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
100
6.3k
Docker and Python
trallard
47
4.2k
sira's awesome portfolio website redesign presentation
elsirapls
0
410
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
930
Build your cross-platform service in a week with App Engine
jlugia
234
19k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
560
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
520
Technical Leadership for Architectural Decision Making
baasie
3
560
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Test your architecture with Archunit
thirion
2
2.4k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
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生活を!