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
保守、運用で使ってみようLambda!
Search
toshihirock
November 16, 2015
Technology
4
1.8k
保守、運用で使ってみようLambda!
toshihirock
November 16, 2015
Tweet
Share
More Decks by toshihirock
See All by toshihirock
Lambdaを使ってJawsDaysをHackしてみよう!
toshihirock
2
1.8k
CodeDeployを使ったアプリケーションデプロイを考える
toshihirock
0
650
Jenkinsおじさんと楽しい連携ツールたち
toshihirock
1
2.4k
Other Decks in Technology
See All in Technology
トラブルシュートを楽しもう (wakamonog meeting 15)
recuraki
4
1k
Mocking your codebase without cursing it
gaqzi
0
130
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
10
120k
フラット構造をやめた理由と、EM / Tech Leadを作った理由
baroqueworksdev
0
380
消し忘れリソースゼロへ!私のResource Explorer活用法
cuorain
0
110
2025-01-24-SRETT11-OpenTofuについてそろそろ調べてみるか
masasuzu
0
130
論文紹介 ”Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG” @GDG Tokyo
shukob
0
230
Skip Skip Run Run Run ♫
temoki
0
310
DMMブックスへのTipKit導入
ttyi2
1
150
TSのコードをRustで書き直した話
askua
4
980
スクラムマスターの活動と組織からの期待のズレへの対応 / Dealing with the gap between Scrum Master activities and organizational expectations
pauli
2
970
タイミーのデータ活用を支えるdbt Cloud導入とこれから
ttccddtoki
2
460
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
A designer walks into a library…
pauljervisheath
205
24k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.4k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
590
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
The Power of CSS Pseudo Elements
geoffreycrofte
74
5.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
39
1.9k
How to Ace a Technical Interview
jacobian
276
23k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
YesSQL, Process and Tooling at Scale
rocio
170
14k
Transcript
อकɺӡ༻ͰͬͯΈΑ͏ Lambda! +"846(ΞʔΩςΫνϟઐࢧ෦ $%1ٞձ !UPTIJIJSPDL
ࣗݾհ ɾ@toshihirock ɾAWSۀ͙Β͍ ɾ͖ - Lambda - Podcast - ϫʔϧυτϦΨʔ
͍ٞͨ͜͠ͱ
None
LambdaͲ͏Ͱ͔͢ʁ ɾόϦόϦຊ൪ڥͰαʔϏεʹؔΘΔҰ෦ Ͱར༻͍ͯ͠Δ ɾຊ൪ڥͰར༻͍ͯ͠Δ͕ɺࣦഊͯ͠αʔ ϏεʹӨڹ͕ͳ͍෦Ͱར༻ ɾݕূத ɾ͍ͬͯͳ͍
ར༻ύλʔϯ ɾAPI GatewayͱͷίϯϏωʔγϣϯͰREST APIͱͯ͠ར༻ ɾS3ͷը૾ͷϦαΠζΛ͢ΔͳͲΠϕϯτυ ϦϒϯͰλεΫΛ͜ͳ͢ ɾcronͷସ ɾอकɺӡ༻ͰͷखؒΛল͘
อकɺӡ༻ͰͷखؒΛল͘ ɾ·ͩLambda͕όϦόϦΘΕ͍ͯΔҹ ͳ͍(ݸਓతʹʣ ɾͰເ͋Δ͠ɺࣄͰ͍͍ͨ ɾͰ·ͩɺݟͳ͍ͪ͠ΐͬͱා͍͔ ɾαʔϏεʹӨڹ͕ͳ͍෦Ͱ͑Կ͔ ͕͋ͬͯେ͖ͳʹͳΒͳ͍(ͣ) ɾ͔ͦ͠ΕͰࣗͷՔಇ͕ݮΒͤΔͷͰ͋ Ε࠷ߴ
͍͔ͭͬͯ͘Έͨ
EC2ͷࣗಈىಈɺࣗಈఀࢭ Qiita: OpsWorks͔Lambda(εέδϡʔϧʣΛͬͯEC2ࣗಈىಈࣗಈఀࢭͰඅ༻અ͢Δ http://qiita.com/toshihirock/items/83c15c35562bed170fe4
EC2ͷࣗಈىಈɺࣗಈఀࢭ ɾEC2ͷλάʹىಈ࣌ؒɺఀࢭ࣌ؒΛఆٛ ɾLambdaͷcron࣮ߦͰࣗಈىಈɺࣗಈఀࢭ ɾίʔσΟϯάΛϛεΔͱຊ൪ڥͷEC2ఀ ࢭͳͲͷةݥ͋ΔͷͰઃఆ͢ΔϩʔϧͰ ੍ݶΛߦ͏͜ͱ ɾ୯७ʹࣗಈىಈɺࣗಈఀࢭػೳ͚ͩͳΒ OpsWorksͷTime-basedΠϯελϯεͷํ͕ GUIͰઃఆͰ͖ΔͷͰָ
ELBΞΫηεϩάूܭ Qiita: Lambda+Elasticsearch(Amazon Elasticsearch Service)ͰELBͷϩάΛαʔόʔϨεͰKibanaͰՄࢹԽ͢ Δ http://qiita.com/toshihirock/items/e530f3cb6dcf545601c9
ELBΞΫηεϩάूܭ ɾLambdaͱElasticSearchServiceͷ࿈ܞα ϯϓϧίʔυ͕͋ͬͨͷͰͦΕΛར༻ ɾELBϩάύʔε෦npmΛ࡞Γ·ͨ͠ͷ Ͱ͝ར༻͍ͩ͘͞(ELB-log-parser) https://www.npmjs.com/package/elb-log- parser ɾ؆୯ʹͰ͖ͨͷͰྑ͍ ɾࣦഊ͍ͯͨ͠ͱͯ͠S3ʹϩά͋ΔͷͰ ͳΜͱ͔ͳΔͣ
AWS Config Rule Qiita: AWS Config Rule(Preview)ΛͬͯఆظతʹEC2ͷىಈΛ֬ೝ͢Δ http://qiita.com/toshihirock/items/a13dea832e92c618c3b4
AWS Config Rule ɾ·ͩϓϨϏϡʔ ɾઃఆΛߦ͏͜ͱͰAWSͷϦιʔε͕ϧʔϧ ʹଇ͍ͬͯΔ͔֬ೝͰ͖Δ ɾϧʔϧAWSͰطʹ࡞ࡁΈͷͷબ ͢Δ͚ͩɻಠࣗϧʔϧLambdaͰఆٛ ɾLambda͑ΔͷͰAWS SDKΛ͑ԿͰ
Ͱ͖Δ ɾྨࣅͨ͠ػೳLambdaεέδϡʔϧΛ ͑ࠓͰ࡞Մೳ
ݸਓతͳؾ࣋ͪ ɾ·ͣαʔϏεʹӨڹ͕ͳ͍෦Ͱؾܰʹ ͬͯݟΔͷ͕Α͍ͷͰͳ͍͔ ɾAWSར༻අ༻ӡ༻අ༻͕Լ͕Δͷ͕ಛʹ ྑ͛͞ ɾݟཷ·ͬͨΒͲΜͲΜLambdaͬͯ EC2͍ͨ͘ͳ͍
LambdaͲΜͲΜͬͯ͜͏!
Thanks!