Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 01 00:00

    briantroy on log-follow-fix

    Chaging to Pygtail for followin… (compare)

  • Dec 31 2020 23:58

    briantroy on log-follow-fix

    Chaging to Pygtail for followin… (compare)

  • Dec 31 2020 23:54

    briantroy on log-follow-fix

    Chaging to Pygtail for followin… (compare)

  • Dec 31 2020 23:51

    briantroy on log-follow-fix

    Chaging to Pygtail for followin… (compare)

  • Dec 31 2020 23:48

    briantroy on log-follow-fix

    Chaging to Pygtail for followin… (compare)

  • Dec 31 2020 23:47

    briantroy on log-follow-fix

    Chaging to Pygtail for followin… (compare)

  • Dec 31 2020 23:44

    briantroy on log-follow-fix

    Chaging to Pygtail for followin… (compare)

  • Dec 31 2020 23:43

    briantroy on log-follow-fix

    Chaging to Pygtail for followin… (compare)

  • Dec 31 2020 23:37

    briantroy on log-follow-fix

    Chaging to Pygtail for followin… (compare)

  • Dec 31 2020 23:33

    briantroy on log-follow-fix

    (compare)

  • Sep 12 2020 19:27

    briantroy on master

    Adding display name translator … (compare)

  • Sep 12 2020 19:15

    briantroy on master

    Adding display name translator … (compare)

  • Sep 12 2020 19:07

    briantroy on master

    Adding display name translator … (compare)

  • Aug 27 2020 15:37

    briantroy on master

    Updating to correctly move to p… (compare)

  • Aug 27 2020 15:26

    briantroy on master

    Updating to correctly move to p… (compare)

  • Aug 22 2020 20:36

    briantroy on master

    HOTFIX: Updating timestamp to m… (compare)

  • Aug 22 2020 20:33

    briantroy on master

    Hot fix for videos playing in b… (compare)

  • Aug 21 2020 23:32

    briantroy on master

    Timestamp bug hotfix (compare)

  • Aug 16 2020 23:14

    briantroy on master

    Modifications supporting system… (compare)

  • Aug 10 2020 18:32

    briantroy on master

    Adding size in bytes to the gra… (compare)

Ben Kehoe
@benkehoe
Hi! I saw your post via @danilop
The way to get direct upload to S3 from an IoT device is to leverage AWS IoT. Connecting to AWS IoT uses certificates, which your device has to have anyway, to do the authentication, rather than access key pairs. So you can publish a request for an upload URL, use a rule to pipe it into a Lambda that generates a pre-signed URL specific to that camera, and publishes it to a topic that the camera is listening to.
Then all the camera has to do is the HTTPS PUT to that URL
Ben Kehoe
@benkehoe
(I work for iRobot. Our production cloud supporting our internet-connected Roombas is fully serverless!)
Brian Roy
@briantroy
Yes... But finding.
Sorry, finding a camera that does https put is non trivial. My goal was off the shelf hardware.
I'm using presumed URLs on the REST API side for playback of the videos.
Thanks for the info!
Ben Kehoe
@benkehoe
Sure. From this "Obviously, I’d prefer the cameras sent the videos and images directly to s3 – but I’m also not sure I’d be okay with the security implications of putting an s3 keypair in the camera configuration." it sounded like it was feasible.
In general, certificates are a good option for long-lived credentials on a device. Unfortunately, you can't yet access them from within an API Gateway custom authorizer, though :-/
Brian Roy
@briantroy
Agreed
Brian Roy
@briantroy
Given what I'm doing - at least on the data capture side - I actually like the controller/gateway pattern I've implemented as opposed to having every device connect "up" independently. On the other side - applications talking to the REST API to consume the data captured - I'm using google auth and requests require a token which is validated per request. I'll get I to that part in the next post in the series.
The token validation is done via a customer authenticator.
Brian Roy
@briantroy
Test