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
1.9k
突撃!隣の 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
3.4k
多様な働き方を支える Working Agreements / Working agreements that support diverse work styles
chaspy
1
530
SRE を実現するための組織マネジメント / Management to achieve SRE
chaspy
3
3.1k
サービス立ち上げ期におけるSREの取り組み / SRE efforts in the service launch phase
chaspy
0
250
Implementing Site Reliability Engineering in your organization
chaspy
6
2k
How to measure "Site Reliability Engineering"
chaspy
6
1.9k
Site Reliability Engineering における 重要領域とパフォーマンス指標の提案 / Performance Indicators for SRE
chaspy
1
1.6k
Metric-Driven Decision Making with Custom Prometheus Exporter
chaspy
1
800
想定外の負荷を乗り切ったオンライン教育サービスの裏側 / How We Overcame the COVID-19 Crisis
chaspy
7
4.8k
Other Decks in Technology
See All in Technology
データ分析で切り拓け! エンジニアとしてのデータ分析職キャリア戦略
ksnt
0
130
Meet passkeys
satotakeshi
1
120
Target SDK Versionを上げない Notification runtime permission対応
napplecomputer
0
140
RDRA + JavaによるレジャーSaaSプロダクトの要件定義と実装のシームレスな接続
jjebejj
PRO
3
690
Persistence in Serverless Applications - ServerlessDays NYC
marcduiker
0
240
IoTLT88-NTKanazawa-laundry-dry
yukima0707
0
230
【Pythonデータ分析勉強会#33】「DearPyGuiに入門しました」の続き~Image-Processing-Node-Editor~
kazuhitotakahashi
0
150
アーキテクチャを明文化して開発に臨んだ話
akkie76
0
320
LINEのB2Bプラットフォームにおけるトラブルシューティング2選
line_developers
PRO
3
300
誰が正解を知っているのか / Who knows the right answer
takaking22
1
250
【個人的】オブジェクト指向の現在地
toranoana
0
160
さいきんのRaspberry Pi。 / osc22do-rpi
akkiesoft
6
5.2k
Featured
See All Featured
Docker and Python
trallard
27
1.6k
The Art of Programming - Codeland 2020
erikaheidi
32
11k
Building a Scalable Design System with Sketch
lauravandoore
448
30k
From Idea to $5000 a Month in 5 Months
shpigford
373
44k
The Straight Up "How To Draw Better" Workshop
denniskardys
225
120k
What's new in Ruby 2.0
geeforr
336
30k
VelocityConf: Rendering Performance Case Studies
addyosmani
316
22k
How to train your dragon (web standard)
notwaldorf
58
3.9k
4 Signs Your Business is Dying
shpigford
169
20k
Faster Mobile Websites
deanohume
294
28k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
10
3.4k
A Modern Web Designer's Workflow
chriscoyier
689
180k
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