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
SpeeeKaigi
Search
morioka shuhei
August 02, 2016
1
1.3k
SpeeeKaigi
morioka shuhei
August 02, 2016
Tweet
Share
More Decks by morioka shuhei
See All by morioka shuhei
20191103_小山高専_卒業生講話
selmertsx
1
210
20190306_serverless_meetup_tokyo_11
selmertsx
5
1.6k
aws_reinvent_recap
selmertsx
2
280
aws_reinvent_recap_chaos_engineering_to_serverless
selmertsx
1
1.2k
2018_03_speeekaigi
selmertsx
1
370
sam_on_aws_2018_startup_days
selmertsx
1
300
20171019_aws_startup_tech
selmertsx
1
6.8k
rails_rdm_revieee
selmertsx
0
1.2k
2017_jaws_ug_night_shuhei
selmertsx
3
4.4k
Featured
See All Featured
Embracing the Ebb and Flow
colly
84
4.5k
Code Review Best Practice
trishagee
64
17k
Rails Girls Zürich Keynote
gr2m
94
13k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
GitHub's CSS Performance
jonrohan
1030
460k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Ruby is Unlike a Banana
tanoku
97
11k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Transcript
3VCPUZͰDIBUPQTΛ ͪΌΜͱΔͨΊʹ HFNΛ࡞ͬͨ ԬपฏˏTFMNFSUTY
ࣗݾհ ! Ԭपฏࡀ!TFMNFSUTY ! ιγϟήձࣾ ! 4QFFFೖࣾ ! ψϦΧΤͬͯαʔϏεͷ αʔόʔαΠυΤϯδχΞ
ψϦΧΤ!4QFFF ֎นృۀऀͷհαʔϏε
ࠓͷ͓ͷ֓ཁ 3VCPUZͰEFQMPZ 3VCPUZͰϢʔβʔͷೝՄೝূ ͕Ͱ͖ΔHFNΛ࡞ͬͨ
ҙ ࠓͷ͓ɺ $IBUPQT 3VCPUZ "HJMFΛ ͍ͬͯΔલఏͰ͓͠·͢ʂ
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
ψϦΧΤͷϦϦʔεϑϩʔ Staging 2 w ੍࡞ͨ͠ػೳʹؔͯ͠ɺ10ʹݟͯΒ͏ w 10͔Β0,͕ग़ͨΒɺϦϦʔεͪʹ Staging w ϦϦʔεલʹ࠷ऴ֬ೝΛߦ͏ Production w ຊ൪ʹө͢Δ
10ϨϏϡʔͷ ҉తͳ खॱ ! पΓ͕TUBHJOHڥΛ͍ͬͯΔ͔֬ೝ ! 4UBHJOHʹEFQMPZ͢Δ ! 10ʹϨϏϡʔΛ͓ئ͍͢Δ ! ϨϏϡʔ͕ऴΘͬͨΒɺνʔϜʹใࠂ͢Δ
None
ຊ൪ͷөʜ Ұ෦ΤϯδχΞͷΈ͕EFQMPZͰ͖Δঢ়ଶ
ແବʹͭΒ͍
3VCPUZͰ ղܾ͠Α͏ʂ
実現したい状態 ! 10͕ࣗͰউखʹ֬ೝڥͰ %FQMPZͰ͖Δ ! νʔϜϝϯόʔΈΜͳ͕ ར༻ঢ়گΛ֬ೝͰ͖Δ ! ͱ͍͑ɺΫϦςΟΧϧͳλεΫ ࣮ߦͰ͖ΔਓΛ੍ݶͰ͖Δ
必要な機能 ! 3VCPUZܦ༝ͰDBQJTUSBOPΛͬͯ EFQMPZͰ͖Δػೳ ! 3VCPUZͷλεΫʹؔͯ͠ɺ࣮ߦͰ͖Δ ϢʔβʔΛೝՄೝূͰ͖Δػೳ ্ه̎ͭͷػೳʹؔͯ͠ (FNΛ࡞ͬͨΛ͠·͢
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
slack 踏み台 Staging2 VPC AWS 踏み台 Staging VPC AWS 踏み台
Production VPC AWS
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
SVCPUZ-capistrano 3VCPUZ͔Β$BQJTUSBOPͰ%FQMPZͰ͖ΔHFN
͍ํ %&1-0:@3&104*503:@1"5) EFQMPZ͢Δ3FQPTJUPSZ͕ஔ͍ͯ͋ΔQBUI %&'"6-5@#3"/$) EFQMPZ͢ΔCSBODIͷσϑΥϧτ !CPU໊EFQMPZEFQMPZઌCSBODI໊ ίϚϯυ ಋೖઃఆ
ٕज़తʹͪΐͬͱ٧·ͬͨϙΠϯτ CVOEMFFYFDͨ͠ڥԼͰ ผσΟϨΫτϦʹҠಈͯ͠CVOEMFFYFD͢Δͱɺ ݺͼग़͠ݩͷCVOEMFSͷڥมΛࢀরͪ͠Ό͏ TIBSFE@IFMQFSSCͷTFU@CVOEMF@WBSJBCMFT
ٕज़తʹͪΐͬͱ٧·ͬͨϙΠϯτ #VOEMFSXJUI@DMFBO@FOW͕͑ͦ͏ ެࣜυΩϡϝϯτΛಡΜͰΈͨ
ٕज़తʹͪΐͬͱ٧·ͬͨϙΠϯτ Ұճڥมഁغͨ͋͠ͱɺ࠶ೖΕͳ͓ͯ͠Δ ͔ΒɺͲ͏Βେৎͦ͏ ৭ʑ ࣗͷӳޠྗͱ͔ ෆ҆ͳͷͰ࣮ಡΜͩ
ٕज़తʹͪΐͬͱ٧·ͬͨϙΠϯτ ͜Μͳײ͡Ͱ࣮
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
SVCPUZBVUIPSJ[BUJPO #05ͷ࣮ߦݖݶΛઃఆͰ͖ΔHFN
͍ํ 08/&3@/".& CPUͷΦʔφʔͷ໊લΛొ͢Δ ͜͜Ͱઃఆͨ͠ϢʔβʔͷΈɺೝՄͰ͖Δ ಋೖઃఆ ίϚϯυ !CPU໊BVUIPSJ[FϢʔβʔ໊
ٕज़తʹͪΐͬͱࠔͬͨϙΠϯτ 3VCPUZͷίʔυಡΜͰɺ ݁ߏ্ॻ͖͠·ͨ͠ SVCPUZBDUJPOSCͷDBMMΛ্ॻ͖
࣍ ! 3VCPUZಋೖͷഎܠ ! 3VCPUZͷ࣮ߦڥ ! 3VCPUZʹΑΔ%FQMPZ ! 3VCPUZʹΑΔݖݶཧ ! ࠷ޙʹ
3VCPUZΛಋೖͯ͠Έͯ ! 10͕ࣗͰ%FQMPZͯ͘͠ΕΔΑ͏ʹͳͬͨ ! ݖݶແ͍ਓ%FQMPZͰ͖ͳ͍ͷͰ҆৺
ࠓճ࡞ͨ͠ͷ ! 3VCPUZೝূ༻(FN IUUQTHJUIVCDPNTFMNFSUTYSVCPUZBVUIPSJ[BUJPO ! 3VCPUZ%FQMPZ༻(FN IUUQTHJUIVCDPNTFMNFSUTYSVCPUZDBQJTUSBOP 13ˍཁΛ͓ͪͯ͠·͢ʂ