Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 15 2017 23:46

    briantroy on graph-analytics

    replacing exit 0 (compare)

  • Feb 15 2017 23:41

    briantroy on graph-analytics

    Removing forced exit 0 from bui… (compare)

  • Feb 14 2017 21:55

    briantroy on graph-analytics

    Preserving paths in artifact ou… (compare)

  • Feb 14 2017 21:49

    briantroy on graph-analytics

    update to buildspec (compare)

  • Feb 14 2017 21:38

    briantroy on graph-analytics

    rearranging static code analysi… (compare)

  • Feb 14 2017 21:22

    briantroy on graph-analytics

    Trying just a directory for art… (compare)

  • Feb 14 2017 21:16

    briantroy on graph-analytics

    Fixing output directory for cod… (compare)

  • Feb 14 2017 21:04

    briantroy on graph-analytics

    Fixing config to enable log cre… (compare)

  • Feb 14 2017 20:58

    briantroy on graph-analytics

    Updating test to generate failu… (compare)

  • Feb 14 2017 20:50

    briantroy on graph-analytics

    changing paths. (compare)

  • Feb 14 2017 20:35

    briantroy on graph-analytics

    unit test execution script chan… (compare)

  • Feb 14 2017 20:29

    briantroy on graph-analytics

    fixing stupid bash syntax error. (compare)

  • Feb 14 2017 20:24

    briantroy on graph-analytics

    adding exit 0 so build doesn't … (compare)

  • Feb 14 2017 20:17

    briantroy on graph-analytics

    typo fix in buildspec (compare)

  • Feb 14 2017 20:13

    briantroy on graph-analytics

    Adding chmod to allow execution… (compare)

  • Feb 14 2017 20:05

    briantroy on graph-analytics

    typo fix. (compare)

  • Feb 14 2017 20:02

    briantroy on graph-analytics

    Updating buildspec again (compare)

  • Feb 14 2017 19:59

    briantroy on graph-analytics

    Fixing buildspec (compare)

  • Feb 14 2017 19:50

    briantroy on graph-analytics

    Adding buildspec for AWS Code P… (compare)

  • Feb 07 2017 00:04

    briantroy on graph-analytics

    Adding gitignore for ide files (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