Upgrade to Pro — share decks privately, control downloads, hide ads and more …

higobashi.aws 第2回「IoTとサーバーレスとラズパイ」

higobashi.aws 第2回「IoTとサーバーレスとラズパイ」

higobashi.awsで発表した資料です。

yuji nishimura

March 24, 2018
Tweet

More Decks by yuji nishimura

Other Decks in Technology

Transcript

  1. • ੢ଜ༞ೋ(27) • αʔόʔϨε։ൃ෦ • ೖࣾ10ϲ݄ • AWSྺ10ϲ݄ • େࡕʹUλʔϯస৬

    • લ৬͸ISPͷձࣾͰސ٬γεςϜͷӡ༻ɾอक ―ࣗݾ঺հ 
  2. ―*P5ؔ࿈"84αʔϏε  ✦ϨΠϠ͝ͱʹෳ਺αʔϏε͕͋Δ σόΠε ՄࢹԽ ༧ଌɾݕ஌ σόΠε؅ཧ Amazon
 S3 AWS

    Lambda Amazon
 DynamoDB Amazon Kinesis Amazon
 Athena Amazon EMR Amazon ES Amazon QuickSight Amazon API Gateway* Amazon
 Cognito AWS IoT Amazon
 S3 σʔλऩू σʔλอଘ σʔλॲཧɾ෼ੳ Amazon Kinesis Amazon 
 ElastiCache AWS IoT σόΠε੍ޚ σόΠε؅ཧ AWS IoT ׆༻ AWS Lambda ཁ݅ʹ߹Θͤͯ࠷దͳαʔϏεΛબ୒
  3. ―*P5ؔ࿈"84αʔϏε  ✦ϨΠϠ͝ͱʹෳ਺αʔϏε͕͋Δ σόΠε ՄࢹԽ ༧ଌɾݕ஌ σόΠε؅ཧ Amazon
 S3 AWS

    Lambda Amazon
 DynamoDB Amazon Kinesis Amazon
 Athena Amazon EMR Amazon ES Amazon QuickSight Amazon API Gateway* Amazon
 Cognito AWS IoT Amazon
 S3 σʔλऩू σʔλอଘ σʔλॲཧɾ෼ੳ Amazon Kinesis Amazon 
 ElastiCache AWS IoT σόΠε੍ޚ σόΠε؅ཧ AWS IoT ׆༻ AWS Lambda ཁ݅ʹ߹Θͤͯ࠷దͳαʔϏεΛબ୒
  4. ―σόΠεͱ"84Λͭͳ͙αʔϏε  ✦σόΠεͱσʔλΛૹड৴͢ΔαʔϏεબఆ σόΠεΛԕִૢ࡞͍ͨ͠ͱ͖͸AWS IoT͕࠷ద "84*P5 "NB[PO ,JOFTJT "NB[PO 4

    ϖΠϩʔυ ϝοηʔδ ,#·Ͱ Ϩίʔυ.#· Ͱ ΦϒδΣΫτ5#·Ͱ ϓϩτίϧ .2554)5514 .255PWFS8FC4PDLFU )5514 )5514 ೝূ ΫϥΠΞϯτূ໌ॻ 4JH7 4JH7 4JH7 ద͢Δ༻్ ϖΠϩʔυ͕খ͍͞ σόΠεͱ"84ͷ૒ํ޲௨৴ ߴ͍ηΩϡϦςΟ͕ٻΊΒΕΔ ϖΠϩʔυ͕େ͖ ͘ ૹ৴ස౓͕େ͖͍ σʔλαΠζ͕େ͖͘ ϑΝΠϧ୯ҐͰσʔλΛ ѻ͏৔߹
  5. ―"OHVMBS$-*ͷྫɿ਽ܗ࡞੒  ✦Πϯετʔϧ $ npm install -g @angular/cli ✦਽ܗ࡞੒ʢWebpack+Typescript+SCSSʣ ✦e2e,karma,protractor,tslintͷઃఆ΋·Δͬͱؚ·

    Εͯੜ੒ͯ͘͠ΕΔ $ ng new [app-name] --style scss ✦ଞͷCSSͷϝλݴޠ΋ࢦఆՄೳ ɾless ɾsass ɾstyl (stylus)
  6. ―"OHVMBS$-*ͷྫɿϏϧυσϓϩΠ  ✦࡞੒ͨ͠ΞϓϦΛίϚϯυҰͭͰϏϧυ ✦HTML,JSͷϑΝΠϧ܈Λʮdistʯʹग़ྗ $ ng build $ ng build

    —prod ✦࠷దԽͯ͠Ϗϧυɺ༰ྔݮ ✦aws cliͰ؆୯ʹSPAΛσϓϩΠ $ aws s3 sync dist s3://<bucket> —-delete
  7. ―ϥζύΠͰͷ։ൃ࡞ۀ  ✦AWS IoTͰ࡞੒ͨ͠ূ໌ॻͷ഑ஔ ✦AWS IoT Device SDK for PythonΛ഑ஔ

    ✦MQTTͰγϟυ΢ͷDeltaΛ؂ࢹ͢ΔϓϩάϥϜΛ ࣮ߦ͓ͯ͘͠ ✦γϟυ΢ͷมߋϦΫΤετΛτϦΨʹίϚϯυ࣮ߦ