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
4.3k
RAGの簡易評価によるフィードバックサイクル実践 / Feedback cycle practice through simplified assessment of RAGs
chaspy
2
4.2k
定量データと定性評価を用いた技術戦略の組織的実践 / Systematic implementation of technology strategies using quantitative data and qualitative evaluation
chaspy
9
1.4k
エンジニアブランディングチームの KPI / KPI's of engineer branding team
chaspy
2
1.7k
「SLO Review」今やるならこうする / If I had to do the "SLO Review" again
chaspy
3
1.6k
開発者とともに作る Site Reliability Engineering / SREing with Developers
chaspy
10
7.5k
自己診断能力の獲得を目指して / Toward the acquisition of self-diagnostic skills
chaspy
1
4.3k
『スタディサプリ 中学講座』における E2E Test の運用と計測による改善 / Improved E2E testing through measurement
chaspy
0
4k
『スタディサプリ』における SLI/SLO の継続的改善 / Continuous improvement of SLI/SLO at StudySapuri
chaspy
1
2.9k
Other Decks in Technology
See All in Technology
CAMERA-Suite: 広告文生成のための評価スイート / ai-camera-suite
cyberagentdevelopers
PRO
3
230
キーワードの再整理のススメ ~テストタイプ/テストレベルで最適化!~/20241025 Midori Inada
shift_evolve
0
120
Databricksワークショップ - 生成AIとDWH
taka_aki
2
4.5k
クラシルの現在とこれから
am1157154
1
340
2024-10-30-reInventStandby_StudyGroup_Intro
shinichirokawano
1
230
Databricksで構築する初めての複合AIシステム - ML15min
taka_aki
2
1.3k
生成AI×マルチテナントSaaSな新規事業を立ち上げる上でテックリードとして気を使った点の紹介
lunastera
0
530
Capybara+生成AIでどこまで本当に自然言語のテストを書けるか?
yusukeiwaki
6
1.1k
リファクタリングへの耐性が高いモデルベースの統合テストの紹介 / Model-Base Integration Test for Refactoring
yuitosato
5
1.5k
とあるユーザー企業におけるリスクベースで考えるセキュリティ業務のお話し
4su_para
0
250
ActiveRecord SQLインジェクションクイズ (Rails 7.1.3.4)
kozy4324
9
2.1k
Hotwire光の道とStimulus
nay3
5
2.2k
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
272
40k
Unsuck your backbone
ammeep
668
57k
How to Ace a Technical Interview
jacobian
275
23k
Designing for humans not robots
tammielis
249
25k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
How GitHub (no longer) Works
holman
311
140k
Thoughts on Productivity
jonyablonski
67
4.3k
BBQ
matthewcrist
85
9.3k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
1.9k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
41
9.2k
The World Runs on Bad Software
bkeepers
PRO
65
11k
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