Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
突撃!隣の Terraform / Visit the next terraform
Takeshi Kondo
December 02, 2019
Technology
5
2k
突撃!隣の 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
Who owns the Service Level?
chaspy
5
7.5k
多様な働き方を支える Working Agreements / Working agreements that support diverse work styles
chaspy
1
1.3k
SRE を実現するための組織マネジメント / Management to achieve SRE
chaspy
3
4.3k
サービス立ち上げ期におけるSREの取り組み / SRE efforts in the service launch phase
chaspy
0
950
Implementing Site Reliability Engineering in your organization
chaspy
6
2.4k
How to measure "Site Reliability Engineering"
chaspy
6
2.4k
Site Reliability Engineering における 重要領域とパフォーマンス指標の提案 / Performance Indicators for SRE
chaspy
1
2.1k
Metric-Driven Decision Making with Custom Prometheus Exporter
chaspy
1
1.1k
想定外の負荷を乗り切ったオンライン教育サービスの裏側 / How We Overcame the COVID-19 Crisis
chaspy
7
5.6k
Other Decks in Technology
See All in Technology
PHPのimmutable arrayとは
hnw
1
160
Logbii(ログビー) 会社紹介
logbii
0
140
OpenShift.Run2023_create-aro-with-terraform
ishiitaiki20fixer
1
310
私見「UNIXの考え方」/20230124-kameda-unix-phylosophy
opelab
0
160
Exploring MapStore Release 2022.02: improved 3DTiles support and more
simboss
PRO
0
370
ユーザーテストガイドライン VERSION 2.0
kouzoukaikaku
0
1.4k
Pentesting Password Reset Functionality
anugrahsr
0
480
FlexScan HD2452Wの 後継を探して
tring
0
6.4k
Bill One 開発エンジニア 紹介資料
sansantech
PRO
0
120
Cloudflare Workersで動くOG画像生成器
aiji42
1
490
オブザーバビリティのベストプラクティスと弥生の現状 / best practices for observability and YAYOI’s current state
yayoi_dd
0
100
Oracle Cloud Infrastructure:2023年1月度サービス・アップデート
oracle4engineer
PRO
0
160
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
12
1.5k
A Philosophy of Restraint
colly
193
15k
Designing the Hi-DPI Web
ddemaree
273
32k
Support Driven Design
roundedbygravity
88
8.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
32
1.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1.1M
Navigating Team Friction
lara
177
12k
Put a Button on it: Removing Barriers to Going Fast.
kastner
56
2.5k
It's Worth the Effort
3n
177
26k
Visualization
eitanlees
128
12k
Facilitating Awesome Meetings
lara
33
4.6k
Build your cross-platform service in a week with App Engine
jlugia
221
17k
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