https://github.com/bluepeter/aws-lambda-rekognition
Node.js Lambda invocation, via S3 trigger, of AWS Rekognition for facial recognition.
https://github.com/bluepeter/aws-lambda-rekognition
aws aws-lambda aws-lambda-node aws-rekognition aws-s3 nodejs
Last synced: 3 months ago
JSON representation
Node.js Lambda invocation, via S3 trigger, of AWS Rekognition for facial recognition.
- Host: GitHub
- URL: https://github.com/bluepeter/aws-lambda-rekognition
- Owner: bluepeter
- License: mit
- Created: 2018-09-08T03:30:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T23:46:41.000Z (almost 7 years ago)
- Last Synced: 2025-04-06T10:44:41.290Z (3 months ago)
- Topics: aws, aws-lambda, aws-lambda-node, aws-rekognition, aws-s3, nodejs
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 12
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Lambda + Rekognition
This project shows you how to setup an S3 trigger whenever an image is added to
an S3 bucket. The trigger will invoke a Lambda function. This Lambda function
will call AWS Rekognition, and output the results in the same S3 bucket as a
JSON file.## Screenshots


## How to use
1. Clone this repo!
2. `yarn` to build everything.
3. Go to AWS Console.
4. Create a Node.js 8.10 Lambda function called "rekognize" with dummy
Javascript. When you create the function, add a Role giving full access to
CloudWatch, Rekognition, and S3. Bump up the timeout to 30 seconds.
5. `yarn run deploy` to deploy our code to this new Lambda function!
6. Go to your S3 bucket. We are going to add a trigger so that our
function fires whenever a `png` image is added. Click the "Properties" tab.
Expand the "Events" panel. Add a Lambda trigger that should look like this:

7. Test it! Upload a png image to the S3 bucket. In a moment or so, you will
see a JSON file with the results. Cool!