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
突撃!隣の Terraform / Visit the next terraform
Search
Takeshi Kondo
December 02, 2019
Technology
5
2.4k
突撃!隣の Terraform / Visit the next terraform
terraform meetup tokyo#3
https://terraform-jp.connpass.com/event/153286/
Takeshi Kondo
December 02, 2019
Tweet
Share
More Decks by Takeshi Kondo
See All by Takeshi Kondo
SRE の考えをマネジメントに活かす / applying SRE ideas to management
chaspy
7
5.4k
RAGの簡易評価によるフィードバックサイクル実践 / Feedback cycle practice through simplified assessment of RAGs
chaspy
2
4.7k
定量データと定性評価を用いた技術戦略の組織的実践 / Systematic implementation of technology strategies using quantitative data and qualitative evaluation
chaspy
9
1.6k
エンジニアブランディングチームの KPI / KPI's of engineer branding team
chaspy
2
1.9k
「SLO Review」今やるならこうする / If I had to do the "SLO Review" again
chaspy
3
1.7k
開発者とともに作る Site Reliability Engineering / SREing with Developers
chaspy
10
7.7k
自己診断能力の獲得を目指して / Toward the acquisition of self-diagnostic skills
chaspy
1
4.6k
『スタディサプリ 中学講座』における E2E Test の運用と計測による改善 / Improved E2E testing through measurement
chaspy
0
4.2k
『スタディサプリ』における SLI/SLO の継続的改善 / Continuous improvement of SLI/SLO at StudySapuri
chaspy
1
3.1k
Other Decks in Technology
See All in Technology
怖くない!ゼロから始めるPHPソースコードコンパイル入門
colopl
0
240
能動的ドメイン名ライフサイクル管理のすゝめ / Practice on Active Domain Name Lifecycle Management
nttcom
0
310
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
1
5k
効率的な技術組織が作れる!書籍『チームトポロジー』要点まとめ
iwamot
2
190
20241125 - AI 繪圖實戰魔法工作坊 @ 實踐大學
dpys
1
440
Unlearn Product Development - Unleashed Edition
lemiorhan
PRO
2
170
DevFest 2024 Incheon / Songdo - Compose UI 조합 심화
wisemuji
0
250
NOT VALIDな検査制約 / check constraint that is not valid
yahonda
1
110
型情報を用いたLintでコード品質を向上させる
sansantech
PRO
2
220
OPENLOGI Company Profile
hr01
0
57k
Accessibility Inspectorを活用した アプリのアクセシビリティ向上方法
hinakko
0
110
実践! ソフトウェアエンジニアリングの価値の計測 ── Effort、Output、Outcome、Impact
nomuson
0
1.4k
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
550
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
171
50k
Optimising Largest Contentful Paint
csswizardry
33
3k
Practical Orchestrator
shlominoach
186
10k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Docker and Python
trallard
43
3.2k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Being A Developer After 40
akosma
89
590k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.2k
Rails Girls Zürich Keynote
gr2m
94
13k
KATA
mclloyd
29
14k
Transcript
ಥܸʂྡͷ Terraform Takeshi Kondo / @chaspy 2019/12/02 Terraform Meetup Tokyo#3
tl;dr • KyashɾϝϧΧϦͷ Terraform ͷӡ༻Λώ ΞϦϯά͠ʹಥܸͨ͠ • ඇৗʹֶͼ͕ଟ͔ͬͨͷͰɺಠΓΊͤ ͣɺίϛϡχςΟʹؐݩ͍ͨ͠ •
͏ͪʹಥܸ͠ʹ͖ͯͶʂ
Background • https://gist.github.com/suzuki-shunsuke/ 0f6f602571920e95be279044c2f44ea8 • 2 repositories, 3 states •
Japan / Global • Production / Staging / Manage • ୭Ͱ PR Λ͛ΒΕΔঢ়گͰ͋Δɺ͕ɺɺɺ • Өڹൣғ͕େ͖͍ • Release branch ӡ༻ʹݶք͕ݟ͖͑ͯͨ • SRE Λհͣ͞ Devs ͕ࣗ༝ʹ merge & release ͯ͠΄͍͠ • Splitting State • Delegation to devs
Background
Background
https://twitter.com/chaspy_/status/1187601882245582848
❗
❗
None
Kyash https://kyash.co/company/
Kyash • @lamanotrama ͞Μʢݩฐࣾ Senior SREʣ • workspace Λ༻ •
։ൃɾຊ൪͕Ұக͍ͯ͠Δ͜ͱΛώΞϦϯάͰ֬ೝ • remote stateͷ key check ࣗಈԽ • moduleԽͷࡍͷTips • module ͷ෦͕͋·ΓมΘΒͳ͍ͱ֬৴Ͱ͖Δͷ • ෳࡶͳ༷Λ module ʹ͠ͳ͍ • State ࣗମΛ͚͍ͯΔͷͰ module Խ͢Δ͜ͱͰ DRY ʹͳΒͳ͍
mercari https://about.mercari.com/about/
mercari • @deeeet ͞Μ / @dtan4 ͞Μ • https://gist.github.com/tcnksm/ 7b430f7955beac1ebb5b4d2fb26b40f7
• GitHub flow • ಉ࣌ʹ1 service ͔͠มߋͰ͖ͳ੍͍ • Master branch Ͱͷ CI ඞͣ 1 service ͷΈ͕ Apply • ৽αʔϏε࡞࣌ʹ bootstrap Λ༻ҙ • microservices starter kit module • template_dir Λ༻͍࣭ͯʹ͑Δͱࣗಈੜ • Stein ʹΑΔ lint
Future work By @suzuki-shunsuke • Conftest ʹΑΔ state ͷ Lint
• Remote state ͷ key ͷ Lint • Kubernetes ͷ manifest ςετͰ͖Δ • Service domain ୯ҐͰͷׂத • ڞ௨ɾωοτϫʔΫϦιʔεͷґଘϋʔυίʔυ • Application in monorepo ͷ໊લͱҰகͤ͞Δ • Service ͱͦΕΒ͕ར༻͢Δ Infrastructure Կ͔͠Β ͷنͰҰகͤ͞Δඞཁ͕͋Δͱஅ
͓͠·͍ • ֶͼ͕ଟ͔ͬͨͷͰಥܸศར • ઈࢍ state ׂத • Terraform ӡ༻ʹ͍ͭͯฉ͖͍ͨ͜ͱ͕
͋ͬͨΒ͍ͭͰ༡ͼʹ͖͍ͯͩ͘͞
Thank You! chaspy chaspy_ Site Reliability Engineer Takeshi Kondo SRE
Lounge Terraform-jp