SORACOMとクラウドを繋ぐツールCassiopeiaを作ってみた

Ecd0c945f6911dbf75358a8addee15f7?s=47 takipone
April 06, 2016

 SORACOMとクラウドを繋ぐツールCassiopeiaを作ってみた

SORACOM-UG #2 2016/04/06 LT

Ecd0c945f6911dbf75358a8addee15f7?s=128

takipone

April 06, 2016
Tweet

Transcript

  1. SORACOMͱΫϥ΢υΛܨ͙πʔϧ Cassiopeia Λ࡞ͬͯΈͨ SORACOM-UG #2 2016/04/06 LT @takipone

  2. About me • @takipone • ΠϯϑϥΤϯδχΞ • Goॳ৺ऀ

  3. Cassiopeiaͱ͸ • https://github.com/takipone/cassiopeia • ඇσϕϩού͕खܰʹ࢖͑ΔΑ͏ͳ
 IoTόοΫΤϯυΛ࡞Δ& ܨ͛Δ CLIπʔϧ • (ࣗ෼͸)ELKΛษڧ͍ͨ͠


    ˠ ݁ՌɺGolangͷษڧʹ୤ઢ
  4. CassiopeiaͷΞʔΩςΫνϟ Device Analyzer Transit Amazon
 Kinesis
 Streams Elasticsearch Kibana on

    Docker "84ͷೝূ͸  5-4ඞਢ &MBTUJDTFBSDI ͷ"1*
  5. CassiopeiaͷΞʔΩςΫνϟ Device Analyzer Transit Formatter SORACOM Funnel
 (EdgeTransit)

  6. ඞཁͳ΋ͷ • SORACOMΞΧ΢ϯτ
 ؀ڥม਺ SORACOM_EMAIL, SORACOM_PASSWORD ʹΞΧ΢ϯτ৘ใΛηοτ ※ ݱࡏ͸ඇਪ঑ͳઃఆ •

    AWSΞΧ΢ϯτ
 ~/.aws/credentialsʹAPIΩʔ&γʔΫϨοτΩʔΛ ηοτ
  7. අ༻ • AWS : Amazon Kinesis
 $0.0195/h ($14.6/month)
 ※ Kinesisʹ͸ແྉ࿮͕ແ͍

    (>_<) • SORACOM Funnel
 ˇ0.0018/ճ (ˇ8/month)
 ※ ֹ݄͸1ϊʔυ͕10෼ִؒͰσʔλૹ৴
  8. ࢖͍ํ 1. $ cas setup # ֤ίϯϙʔωϯτͷ࡞੒ 2. άϧʔϓʹSIMΛηοτ͠ɺ
 Device͔ΒσʔλΛPOST

    3. $ cas pull # Formatter ͷ࣮ߦ 4. $ cas open # AnalyzerΛ։͘
  9. Demo

  10. ϩʔυϚοϓ/λεΫ • FormatterͷAWS LambdaରԠ • AnalyzerͷAmazon Elasticsearch ServiceରԠ • ؀ڥม਺ΛࢭΊͯɺ


    ~/.cassiopeia/default.jsonΈ͍ͨʹ͢Δ • FormatterͷϩδοΫ֎ग़͠(cas fetch)
  11. ϩʔυϚοϓ/λεΫ • ͪΌΜͱͨ͠READMEΛॻ͘ • ςετίʔυॻ͘ • Φϓγϣϯ෇͚Δ • Issue/PR଴ͬͯ·ʔ͢
 https://github.com/takipone/cassiopeia