Pro Yearly is on sale from $80 to $50! »

保守、運用で使ってみようLambda!

Ee92a1618b3853c52168612a0cbe47cb?s=47 toshihirock
November 16, 2015

 保守、運用で使ってみようLambda!

Ee92a1618b3853c52168612a0cbe47cb?s=128

toshihirock

November 16, 2015
Tweet

Transcript

  1. อकɺӡ༻Ͱ࢖ͬͯΈΑ͏ Lambda!  +"846(ΞʔΩςΫνϟઐ໳ࢧ෦ $%1ٞ࿦ձ !UPTIJIJSPDL

  2. ࣗݾ঺հ ɾ@toshihirock ɾAWSۀ຿͸൒೥͙Β͍ ɾ޷͖ - Lambda - Podcast - ϫʔϧυτϦΨʔ

  3. ٞ࿦͍ͨ͜͠ͱ

  4. None
  5. LambdaͲ͏Ͱ͔͢ʁ ɾόϦόϦຊ൪؀ڥͰαʔϏεʹؔΘΔҰ෦ Ͱར༻͍ͯ͠Δ ɾຊ൪؀ڥͰར༻͍ͯ͠Δ͕ɺࣦഊͯ͠΋αʔ ϏεʹӨڹ͕ͳ͍෦෼Ͱར༻ ɾݕূத ɾ࢖͍ͬͯͳ͍

  6. ར༻ύλʔϯ ɾAPI GatewayͱͷίϯϏωʔγϣϯͰREST APIͱͯ͠ར༻ ɾS3ͷը૾ͷϦαΠζΛ͢ΔͳͲΠϕϯτυ ϦϒϯͰλεΫΛ͜ͳ͢ ɾcronͷ୅ସ ɾอकɺӡ༻ͰͷखؒΛল͘

  7. อकɺӡ༻ͰͷखؒΛল͘ ɾ·ͩLambda͕όϦόϦ࢖ΘΕ͍ͯΔҹ৅ ͸ͳ͍(ݸਓతʹʣ ɾͰ΋ເ͸͋Δ͠ɺ࢓ࣄͰ࢖͍͍ͨ ɾͰ΋·ͩɺ஌ݟͳ͍ͪ͠ΐͬͱා͍͔΋ ɾαʔϏεʹӨڹ͕ͳ͍෦෼Ͱ࢖͑͹Կ͔໰ ୊͕͋ͬͯ΋େ͖ͳ໰୊ʹ͸ͳΒͳ͍(͸ͣ) ɾ͔͠΋ͦΕͰࣗ෼ͷՔಇ͕ݮΒͤΔͷͰ͋ Ε͹࠷ߴ

  8. ͍͔ͭ͘΍ͬͯΈͨ

  9. EC2ͷࣗಈىಈɺࣗಈఀࢭ Qiita: OpsWorks͔Lambda(εέδϡʔϧʣΛ࢖ͬͯEC2ࣗಈىಈࣗಈఀࢭͰඅ༻અ໿͢Δ http://qiita.com/toshihirock/items/83c15c35562bed170fe4

  10. EC2ͷࣗಈىಈɺࣗಈఀࢭ ɾEC2ͷλάʹىಈ࣌ؒɺఀࢭ࣌ؒΛఆٛ ɾLambdaͷcron࣮ߦͰࣗಈىಈɺࣗಈఀࢭ ɾίʔσΟϯάΛϛεΔͱຊ൪؀ڥͷEC2ఀ ࢭͳͲͷةݥ΋͋ΔͷͰઃఆ͢ΔϩʔϧͰ͸ ੍ݶΛߦ͏͜ͱ ɾ୯७ʹࣗಈىಈɺࣗಈఀࢭػೳ͚ͩͳΒ OpsWorksͷTime-basedΠϯελϯεͷํ͕ GUIͰઃఆ΋Ͱ͖ΔͷͰָ

  11. ELBΞΫηεϩάूܭ Qiita: Lambda+Elasticsearch(Amazon Elasticsearch Service)ͰELBͷϩάΛαʔόʔϨεͰKibanaͰՄࢹԽ͢ Δ http://qiita.com/toshihirock/items/e530f3cb6dcf545601c9

  12. ELBΞΫηεϩάूܭ ɾLambdaͱElasticSearchServiceͷ࿈ܞ͸α ϯϓϧίʔυ͕͋ͬͨͷͰͦΕΛར༻ ɾELBϩάύʔε෦෼͸npmΛ࡞Γ·ͨ͠ͷ Ͱ͝ར༻͍ͩ͘͞(ELB-log-parser) https://www.npmjs.com/package/elb-log- parser ɾ؆୯ʹͰ͖ͨͷͰྑ͍ ɾࣦഊ͍ͯͨ͠ͱͯ͠΋S3ʹϩά͸͋ΔͷͰ ͳΜͱ͔ͳΔ͸ͣ

  13. AWS Config Rule Qiita: AWS Config Rule(Preview)Λ࢖ͬͯఆظతʹEC2ͷىಈ਺Λ֬ೝ͢Δ http://qiita.com/toshihirock/items/a13dea832e92c618c3b4

  14. AWS Config Rule ɾ·ͩϓϨϏϡʔ ɾઃఆΛߦ͏͜ͱͰAWSͷϦιʔε͕ϧʔϧ ʹଇ͍ͬͯΔ͔֬ೝͰ͖Δ ɾϧʔϧ͸AWSͰطʹ࡞੒ࡁΈͷ΋ͷ͸બ୒ ͢Δ͚ͩɻಠࣗϧʔϧ͸LambdaͰఆٛ ɾLambda࢖͑ΔͷͰAWS SDKΛ࢖͑͹ԿͰ

    ΋Ͱ͖Δ ɾྨࣅͨ͠ػೳ͸LambdaεέδϡʔϧΛ࢖ ͑͹ࠓͰ΋࡞੒͸Մೳ
  15. ݸਓతͳؾ࣋ͪ ɾ·ͣ͸αʔϏεʹӨڹ͕ͳ͍෦෼Ͱؾܰʹ ࢖ͬͯݟΔͷ͕Α͍ͷͰ͸ͳ͍͔ ɾAWSར༻අ༻΍ӡ༻අ༻͕Լ͕Δͷ͕ಛʹ ྑ͛͞ ɾ஌ݟཷ·ͬͨΒͲΜͲΜLambda࢖ͬͯ EC2࢖͍ͨ͘ͳ͍

  16. LambdaͲΜͲΜ࢖ͬͯ͜͏!

  17. Thanks!