Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 13 2021 17:12

    briantroy on production

    (compare)

  • Jul 13 2021 17:12

    briantroy on testing

    (compare)

  • Jul 13 2021 17:11

    briantroy on development

    (compare)

  • Jul 13 2021 17:11

    briantroy on master

    Chaging to Pygtail for followin… Chaging to Pygtail for followin… Chaging to Pygtail for followin… and 8 more (compare)

  • Jul 13 2021 16:59

    briantroy on testing

    (compare)

  • Jul 13 2021 16:59

    briantroy on production

    (compare)

  • Jul 13 2021 16:51

    briantroy on development

    (compare)

  • Jul 08 2021 19:15

    briantroy on master

    Fixing still image base URI pat… (compare)

  • Jul 07 2021 16:04

    briantroy on master

    Fix for api host name and URI p… (compare)

  • Jul 07 2021 15:57

    briantroy on api-host-fix

    Fix for api host name and URI p… (compare)

  • Jul 07 2021 15:56

    briantroy on api-host-fix

    (compare)

  • Jul 07 2021 02:09

    briantroy on log-follow-fix

    updating API lambda functions f… updating API lambda functions f… (compare)

  • Jul 07 2021 01:54

    briantroy on master

    reverting update host for api (compare)

  • Jul 07 2021 01:46

    briantroy on master

    reverting update host for api (compare)

  • Jul 07 2021 01:10

    briantroy on master

    Updating host for api (compare)

  • Jan 01 2021 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)

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