SlideShare a Scribd company logo
1 of 42
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Analyze Image Meta-Data
with Amazon Rekognition
+Athena
Amit Agrawal - agramit@amazon.com
Solution Architect, AWS
Workshop Architecture
You can have many cameras taking
pictures in the store, these images
can be use for multiple purposes e.g.
facial recognition etc. You will:
1. Produce multiple images
2. Durably ingest and store the
images in S3 bucket
3. Perform real time meta-data
generation using Rekognition
4. Use Athena to perform ad-hoc
queries
5. QuickSight to build dashboards.
S3
Lambda Rekognition
Bucket
Athena QuickSight
Objectives for Today
Build an application using Amazon Rekognition and learn how we can
analyze image meta data using Amazon Athena
At the end of the workshop, you will:
1. Understand how to invoke Rekognition APIs
2. Understand how to create DB/table in Athena
3. Understand how to build dashboard in QuickSight by connecting
directly with Athena
Activities
Download Artifacts
Sample	Image	Files: http://bit.ly/2qWvyIU
Lambda	function	
code:
http://bit.ly/2pvEhSc
Activity	Details: http://bit.ly/2qOxFCj
Activity 1
Create IAM user and S3
buckets
Activity 1: Setting up IAM role and S3 buckets
We are going to:
A. Create an AWS IAM role for Lambda function execution
B. Create S3 bucket for input and output folders for the image
processing
We will use durable S3 service to store the captured images. S3 is an
ideal service to store large number of data set as it provides 11 9s
durability and automatic scalability. This solution will read input images
from S3 bucket and will put meta data in the output folders.
Activity 1-A: Create an AWS IAM Role
You can use AWS IAM to securely control individual and group access to
your AWS resources. You can create and manage user identities ("IAM
users") and grant permissions for those IAM users to access your
resources. To grant permissions, you create policy documents that you
attach to users, groups, or other entities.
In Activity 1-A, you will create an IAM role and attach policies to
allow Lambda function access to Rekogniton Service, S3 bucket
and CloudWatch logs. We will attaching this role when we
configure S3 event later on.
Activity 1-A: Create an AWS IAM Role
1. Go to the AWS IAM console, click “Users”
1. https://console.aws.amazon.com/iam/home?region=us-east-
1#/roles
2. Choose “Create Role” on the upper left hand side
Activity 1-A: Create an AWS IAM role
3. Select RoleType from
“AWS Service Role”
4. Click on AWS Lambda
“Select” button
Activity 1-A: Create an AWS IAM role
6. Choose “Attach policies”
and then select following
policies
“AmazonS3FullAccess”,
“AWSLambdaExecute” and
”AmazonRekognitionFullAc
cess”
7. Click on “Next Step”
Activity 1-A: Create an AWS IAM role
8. Choose name for the role
for “Role Name” field
9. Provide description for the
role in “Role Description” field
10. Click on “Create Role”
button
Activity 1-B: Create S3 Buckets
Click on Service management
console and select S3.
Click on “Create bucket”
button
Activity 1-B: Create S3 Buckets
1. Provide unique “Bucket Name” and
select region you want to create
bucket in
2. Click on “Next” button
Note:	Please	ensure	that	the	bucket	is	created	in	same	region	where	rest	of	the	application	will	be.	
Bucket	name	has	to	be	globally	unique	and	should	be	selected	sensibly.
Activity 1-B: Create S3 Buckets
1. In next page leave the default setting
and click on ”Next” button
2. Next page is for setting permissions,
leave the default setting and click on
“Next” button
3. Review the setting and click on
“Create Bucket” button.
Note:	Please	ensure	that	the	bucket	is	created	in	same	region	where	rest	of	the	application	will	be.	
Bucket	name	has	to	be	globally	unique	and	should	be	selected	sensibly.
Activity 1-B: Create S3 Buckets
1. On main page click on “Create folder”
button
2. Create following folders
1. csv
2. json
Activity 2
Setup Lambda function
Activity 2: Setting up Lambda function to process
Images
We are going to:
A. Create a Lambda function using python 2.7
B. Configure S3 event to invoke Lambda function
Activity 2: Setting up Lambda function
1. Go to the AWS Management
Console
2. From the Services menu on the
AWS Management Console, select
Lambda service
3. Click on “Create a Lambda
function” button
Please make sure Lambda function is created in
same region as S3 bucket.
Activity 2: Setting up Lambda function
1. In the “Select Blueprint” screen, select
“s3-get-object-python” option
Activity 2: Setting up Lambda function
1. In “Configure trigger” screen fill up
following information:
1. Select the bucket name from
the drop down
2. In EventType dropdown select
“Object Created (All)”
3. In Suffix field specify “jpg”
4. Check “Enable Trigger” check
box
5. Click on “Next” button
Activity 2: Setting up Lambda function
1. In “Configure Function” screen fill
up following information:
1. In “Name” field provide name
for Lambda function
2. In “Runtime” dropdown select
Python 2.7
3. Copy lambda function from
downloaded file to “Lambda
function code” section
Ensure that Runtime is selected as Python 2.7
Activity 2: Setting up Lambda function
1. In “Lambda function handler and role”
section:
1. In “Role” dropdown select “Choose
an existing role”
2. In ”Existing Role” dropdown select the
role we created in step 1.
2. Click on “Next” button
3. Next page review the information and
click on “Create function” button
Activity 3
Setup Athena Service
Activity 3: Setup Athena Service
1. Open the AWS Management
Console by clicking Open
Console.
2. From the Services menu on the
AWS Management Console, select
Athena Service
Activity 3: Setup Athena Service
Click on “Add Table” section
1. In Database drop down select “Create
New Database”
2. Provide Database name
3. Provide Table name
4. In “Location of Input of Data Set”
provide the S3 bucket we created as
part of step 2
s3://<region_name>/bucket_name e.g. s3://us-east-1/2017-ai-demo/csv
Activity 3: Setup Athena Service
To save time let’s paste the SQL
statement in the query editor
Activity 3: Setup Athena Service
CREATE EXTERNAL TABLE IF NOT EXISTS <db_name>.<table_name> (
`ImageLocation` string,
`Timestamp` string,
`Gender` string,
`Smiling` string,
`Beard` string,
`Mustache` string,
`Sharpness` string,
`Brightness` string,
`MouthOpen` string,
`EyesOpen` string,
You	can	download	SQL	file	from	following	link:
https://s3.amazonaws.com/sfloftrekognitionmay09/Athena_TBL_Def.sql.txt
Activity 3: Setup Athena Service
`LowAgeRange` string,
`HighAgeRange` string,
`Eyeglasses` string,
`Sunglasses` string
)
ROW FORMAT SERDE
'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = ',',
'field.delim' = ','
) LOCATION 's3://<bucket_name>/csv/'
Please	don’t	specify	region	detail	in	S3	
bucket	name
Activity 3: Setup Athena Service
To run the query select on
Eye icon next to table name
Activity 4
Let’s test this
Activity 4: Testing
Let’s test this before we setup
QuickSight dashboard
1. Upload sample images we
downloaded earlier to S3 bucket.
2. Once files are placed Lambda
function will kick off and place files in
csv and json folder
3. Go to Athena service and run select
query and data should be
populated in the table
Sample	CSV File:
Sample	Athena	table	data:
Activity 4: Testing
Let’s run some queries with where clause
Select * from <database_name>.<table_name> where gender=’Female’
Activity 5
Setup QuickSight
Activity 5: Setup Amazon QuickSight Dashboard
1. In QuickSight Service menu
Select Athena as data
source
2. Specify Athena DB name in
“Data Source name” field
3. Click on “Create data
source” button
Activity 5: Setup Amazon QuickSight Dashboard
1. Select the table name from the
list
2. Select how you want to query
the data either directly from
the source or load it up in
memory first. For this lab you
can choose either
Activity 5: Setup Amazon QuickSight Dashboard
From designer window you can choose type of graph you
want to build as well data you want to see. This example
shows graph between count of people who are smiling by
gender
Activity 6
Clean up
Activity 6: Clean up
1. Make sure you delete the sample images from
the S3 bucket and then S3 bucket itself
2. Delete the Athena table and database
3. Delete the Lambda function
Let’s Sum It Up
Summary
1. Fully managed and easy-to-use image recognition
service
2. Four primary capabilities
• Object	and	Scene	Detection
• Facial	Analysis
• Face	Comparison
• Face	Recognition
3. Integrated with AWS and AI Services
• Amazon	S3
• Lex	and	Polly
4. Scalable and low cost
Thank you!
Contact:	agramit@amazon.com

More Related Content

What's hot

Aws meetup systems_manager
Aws meetup systems_managerAws meetup systems_manager
Aws meetup systems_managerAdam Book
 
Parse: A Mobile Backend as a Service (MBaaS)
Parse: A Mobile Backend as a Service (MBaaS)Parse: A Mobile Backend as a Service (MBaaS)
Parse: A Mobile Backend as a Service (MBaaS)Ville Seppänen
 
Microsoft identity platform and device authorization flow to use azure servic...
Microsoft identity platform and device authorization flow to use azure servic...Microsoft identity platform and device authorization flow to use azure servic...
Microsoft identity platform and device authorization flow to use azure servic...Sunil kumar Mohanty
 
Lightning Components Workshop
Lightning Components WorkshopLightning Components Workshop
Lightning Components WorkshopGordon Bockus
 
Awsgsg computebasics
Awsgsg computebasicsAwsgsg computebasics
Awsgsg computebasicsjames0417
 
AWS Instance Preparation
AWS Instance PreparationAWS Instance Preparation
AWS Instance PreparationEbizon
 
AWS IoT 핸즈온 워크샵 - 실습 3. AWS IoT Thing Shadow (김무현 솔루션즈 아키텍트)
AWS IoT 핸즈온 워크샵 - 실습 3. AWS IoT Thing Shadow (김무현 솔루션즈 아키텍트)AWS IoT 핸즈온 워크샵 - 실습 3. AWS IoT Thing Shadow (김무현 솔루션즈 아키텍트)
AWS IoT 핸즈온 워크샵 - 실습 3. AWS IoT Thing Shadow (김무현 솔루션즈 아키텍트)Amazon Web Services Korea
 
Integrating Jira Software Cloud With the AWS Code Suite
Integrating Jira Software Cloud With the AWS Code SuiteIntegrating Jira Software Cloud With the AWS Code Suite
Integrating Jira Software Cloud With the AWS Code SuiteAtlassian
 
Lab 1: Introduction to Amazon EC2 and MPI
Lab 1: Introduction to Amazon EC2 and MPILab 1: Introduction to Amazon EC2 and MPI
Lab 1: Introduction to Amazon EC2 and MPIZubair Nabi
 
How To Manage API Request with AXIOS on a React Native App
How To Manage API Request with AXIOS on a React Native AppHow To Manage API Request with AXIOS on a React Native App
How To Manage API Request with AXIOS on a React Native AppAndolasoft Inc
 
MAF push notifications
MAF push notificationsMAF push notifications
MAF push notificationsLuc Bors
 
Creating azure logic app for salesforce integration | Webner
Creating azure logic app for salesforce integration | WebnerCreating azure logic app for salesforce integration | Webner
Creating azure logic app for salesforce integration | WebnerChandanWebner
 
AWS Summit 2013 | Auckland - Your First Week with Amazon EC2
AWS Summit 2013 | Auckland - Your First Week with Amazon EC2AWS Summit 2013 | Auckland - Your First Week with Amazon EC2
AWS Summit 2013 | Auckland - Your First Week with Amazon EC2Amazon Web Services
 
6 Things You Didn't Know About Firebase Auth
6 Things You Didn't Know About Firebase Auth6 Things You Didn't Know About Firebase Auth
6 Things You Didn't Know About Firebase AuthPeter Friese
 
Rapid Application Development with SwiftUI and Firebase
Rapid Application Development with SwiftUI and FirebaseRapid Application Development with SwiftUI and Firebase
Rapid Application Development with SwiftUI and FirebasePeter Friese
 
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethAws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethremayssat
 
Making connected apps with BaaS (Droidcon Bangalore 2014)
Making connected apps with BaaS (Droidcon Bangalore 2014)Making connected apps with BaaS (Droidcon Bangalore 2014)
Making connected apps with BaaS (Droidcon Bangalore 2014)Varun Torka
 
Lamdba micro service using Amazon Api Gateway
Lamdba micro service using Amazon Api GatewayLamdba micro service using Amazon Api Gateway
Lamdba micro service using Amazon Api GatewayMike Becker
 

What's hot (20)

Aws meetup systems_manager
Aws meetup systems_managerAws meetup systems_manager
Aws meetup systems_manager
 
Parse: A Mobile Backend as a Service (MBaaS)
Parse: A Mobile Backend as a Service (MBaaS)Parse: A Mobile Backend as a Service (MBaaS)
Parse: A Mobile Backend as a Service (MBaaS)
 
Microsoft identity platform and device authorization flow to use azure servic...
Microsoft identity platform and device authorization flow to use azure servic...Microsoft identity platform and device authorization flow to use azure servic...
Microsoft identity platform and device authorization flow to use azure servic...
 
Lightning Components Workshop
Lightning Components WorkshopLightning Components Workshop
Lightning Components Workshop
 
Awsgsg computebasics
Awsgsg computebasicsAwsgsg computebasics
Awsgsg computebasics
 
AWS Instance Preparation
AWS Instance PreparationAWS Instance Preparation
AWS Instance Preparation
 
Aws setup
Aws setupAws setup
Aws setup
 
AWS IoT 핸즈온 워크샵 - 실습 3. AWS IoT Thing Shadow (김무현 솔루션즈 아키텍트)
AWS IoT 핸즈온 워크샵 - 실습 3. AWS IoT Thing Shadow (김무현 솔루션즈 아키텍트)AWS IoT 핸즈온 워크샵 - 실습 3. AWS IoT Thing Shadow (김무현 솔루션즈 아키텍트)
AWS IoT 핸즈온 워크샵 - 실습 3. AWS IoT Thing Shadow (김무현 솔루션즈 아키텍트)
 
Aws tkv-ug
Aws tkv-ugAws tkv-ug
Aws tkv-ug
 
Integrating Jira Software Cloud With the AWS Code Suite
Integrating Jira Software Cloud With the AWS Code SuiteIntegrating Jira Software Cloud With the AWS Code Suite
Integrating Jira Software Cloud With the AWS Code Suite
 
Lab 1: Introduction to Amazon EC2 and MPI
Lab 1: Introduction to Amazon EC2 and MPILab 1: Introduction to Amazon EC2 and MPI
Lab 1: Introduction to Amazon EC2 and MPI
 
How To Manage API Request with AXIOS on a React Native App
How To Manage API Request with AXIOS on a React Native AppHow To Manage API Request with AXIOS on a React Native App
How To Manage API Request with AXIOS on a React Native App
 
MAF push notifications
MAF push notificationsMAF push notifications
MAF push notifications
 
Creating azure logic app for salesforce integration | Webner
Creating azure logic app for salesforce integration | WebnerCreating azure logic app for salesforce integration | Webner
Creating azure logic app for salesforce integration | Webner
 
AWS Summit 2013 | Auckland - Your First Week with Amazon EC2
AWS Summit 2013 | Auckland - Your First Week with Amazon EC2AWS Summit 2013 | Auckland - Your First Week with Amazon EC2
AWS Summit 2013 | Auckland - Your First Week with Amazon EC2
 
6 Things You Didn't Know About Firebase Auth
6 Things You Didn't Know About Firebase Auth6 Things You Didn't Know About Firebase Auth
6 Things You Didn't Know About Firebase Auth
 
Rapid Application Development with SwiftUI and Firebase
Rapid Application Development with SwiftUI and FirebaseRapid Application Development with SwiftUI and Firebase
Rapid Application Development with SwiftUI and Firebase
 
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethAws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
 
Making connected apps with BaaS (Droidcon Bangalore 2014)
Making connected apps with BaaS (Droidcon Bangalore 2014)Making connected apps with BaaS (Droidcon Bangalore 2014)
Making connected apps with BaaS (Droidcon Bangalore 2014)
 
Lamdba micro service using Amazon Api Gateway
Lamdba micro service using Amazon Api GatewayLamdba micro service using Amazon Api Gateway
Lamdba micro service using Amazon Api Gateway
 

Similar to Amazon Rekognition Workshop

Analyze Image Meta-Data with Amazon Rekognition + Athena
Analyze Image Meta-Data with Amazon Rekognition + AthenaAnalyze Image Meta-Data with Amazon Rekognition + Athena
Analyze Image Meta-Data with Amazon Rekognition + AthenaAmazon Web Services
 
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resourcesJavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resourcesCorley S.r.l.
 
Alex Casalboni - Configuration management and service discovery - Codemotion ...
Alex Casalboni - Configuration management and service discovery - Codemotion ...Alex Casalboni - Configuration management and service discovery - Codemotion ...
Alex Casalboni - Configuration management and service discovery - Codemotion ...Codemotion
 
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...DevOps_Fest
 
Rails in the Cloud
Rails in the CloudRails in the Cloud
Rails in the Cloudiwarshak
 
Serverless solution architecture in AWS
Serverless solution architecture in AWSServerless solution architecture in AWS
Serverless solution architecture in AWSRuncy Oommen
 
Perform Diagnostics on Running Instances without Affecting Availability & Rel...
Perform Diagnostics on Running Instances without Affecting Availability & Rel...Perform Diagnostics on Running Instances without Affecting Availability & Rel...
Perform Diagnostics on Running Instances without Affecting Availability & Rel...Amazon Web Services
 
Lab - AWS Lambda Resize Image
Lab - AWS Lambda Resize ImageLab - AWS Lambda Resize Image
Lab - AWS Lambda Resize ImageAlbert Suwandhi
 
Building AWS native serverless website
Building AWS native serverless websiteBuilding AWS native serverless website
Building AWS native serverless websiteRuncy Oommen
 
ACDKOCHI19 - Building a serverless full-stack AWS native website
ACDKOCHI19 - Building a serverless full-stack AWS native websiteACDKOCHI19 - Building a serverless full-stack AWS native website
ACDKOCHI19 - Building a serverless full-stack AWS native websiteAWS User Group Kochi
 
Unleash the Power of Temporary AWS Credentials (a.k.a. IAM roles) (SEC390-R1)...
Unleash the Power of Temporary AWS Credentials (a.k.a. IAM roles) (SEC390-R1)...Unleash the Power of Temporary AWS Credentials (a.k.a. IAM roles) (SEC390-R1)...
Unleash the Power of Temporary AWS Credentials (a.k.a. IAM roles) (SEC390-R1)...Amazon Web Services
 
AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings Adam Book
 
Activity 9 Working with AWS CloudTrail.pdf
Activity 9 Working with AWS CloudTrail.pdfActivity 9 Working with AWS CloudTrail.pdf
Activity 9 Working with AWS CloudTrail.pdfstirlingvwriters
 
AWS re:Invent 2016: IoT Visualizations and Analytics (IOT306)
AWS re:Invent 2016: IoT Visualizations and Analytics (IOT306)AWS re:Invent 2016: IoT Visualizations and Analytics (IOT306)
AWS re:Invent 2016: IoT Visualizations and Analytics (IOT306)Amazon Web Services
 
Thirty Serverless Architectures in 30 Minutes - SRV325 - Chicago AWS Summit
Thirty Serverless Architectures in 30 Minutes - SRV325 - Chicago AWS SummitThirty Serverless Architectures in 30 Minutes - SRV325 - Chicago AWS Summit
Thirty Serverless Architectures in 30 Minutes - SRV325 - Chicago AWS SummitAmazon Web Services
 
AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...
AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...
AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...Amazon Web Services
 
LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQLLearningMVCWithLINQToSQL
LearningMVCWithLINQToSQLAkhil Mittal
 
The Best Practices and Hard Lessons Learned of Serverless Applications - AWS ...
The Best Practices and Hard Lessons Learned of Serverless Applications - AWS ...The Best Practices and Hard Lessons Learned of Serverless Applications - AWS ...
The Best Practices and Hard Lessons Learned of Serverless Applications - AWS ...Amazon Web Services
 
AWS Startup Day - Boston 2018 - The Best Practices and Hard Lessons Learned o...
AWS Startup Day - Boston 2018 - The Best Practices and Hard Lessons Learned o...AWS Startup Day - Boston 2018 - The Best Practices and Hard Lessons Learned o...
AWS Startup Day - Boston 2018 - The Best Practices and Hard Lessons Learned o...Chris Munns
 

Similar to Amazon Rekognition Workshop (20)

Analyze Image Meta-Data with Amazon Rekognition + Athena
Analyze Image Meta-Data with Amazon Rekognition + AthenaAnalyze Image Meta-Data with Amazon Rekognition + Athena
Analyze Image Meta-Data with Amazon Rekognition + Athena
 
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resourcesJavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
 
Alex Casalboni - Configuration management and service discovery - Codemotion ...
Alex Casalboni - Configuration management and service discovery - Codemotion ...Alex Casalboni - Configuration management and service discovery - Codemotion ...
Alex Casalboni - Configuration management and service discovery - Codemotion ...
 
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
DevOps Fest 2019. Alex Casalboni. Configuration management and service discov...
 
Amazone s3 in mule
Amazone s3 in muleAmazone s3 in mule
Amazone s3 in mule
 
Rails in the Cloud
Rails in the CloudRails in the Cloud
Rails in the Cloud
 
Serverless solution architecture in AWS
Serverless solution architecture in AWSServerless solution architecture in AWS
Serverless solution architecture in AWS
 
Perform Diagnostics on Running Instances without Affecting Availability & Rel...
Perform Diagnostics on Running Instances without Affecting Availability & Rel...Perform Diagnostics on Running Instances without Affecting Availability & Rel...
Perform Diagnostics on Running Instances without Affecting Availability & Rel...
 
Lab - AWS Lambda Resize Image
Lab - AWS Lambda Resize ImageLab - AWS Lambda Resize Image
Lab - AWS Lambda Resize Image
 
Building AWS native serverless website
Building AWS native serverless websiteBuilding AWS native serverless website
Building AWS native serverless website
 
ACDKOCHI19 - Building a serverless full-stack AWS native website
ACDKOCHI19 - Building a serverless full-stack AWS native websiteACDKOCHI19 - Building a serverless full-stack AWS native website
ACDKOCHI19 - Building a serverless full-stack AWS native website
 
Unleash the Power of Temporary AWS Credentials (a.k.a. IAM roles) (SEC390-R1)...
Unleash the Power of Temporary AWS Credentials (a.k.a. IAM roles) (SEC390-R1)...Unleash the Power of Temporary AWS Credentials (a.k.a. IAM roles) (SEC390-R1)...
Unleash the Power of Temporary AWS Credentials (a.k.a. IAM roles) (SEC390-R1)...
 
AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings
 
Activity 9 Working with AWS CloudTrail.pdf
Activity 9 Working with AWS CloudTrail.pdfActivity 9 Working with AWS CloudTrail.pdf
Activity 9 Working with AWS CloudTrail.pdf
 
AWS re:Invent 2016: IoT Visualizations and Analytics (IOT306)
AWS re:Invent 2016: IoT Visualizations and Analytics (IOT306)AWS re:Invent 2016: IoT Visualizations and Analytics (IOT306)
AWS re:Invent 2016: IoT Visualizations and Analytics (IOT306)
 
Thirty Serverless Architectures in 30 Minutes - SRV325 - Chicago AWS Summit
Thirty Serverless Architectures in 30 Minutes - SRV325 - Chicago AWS SummitThirty Serverless Architectures in 30 Minutes - SRV325 - Chicago AWS Summit
Thirty Serverless Architectures in 30 Minutes - SRV325 - Chicago AWS Summit
 
AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...
AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...
AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...
 
LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQLLearningMVCWithLINQToSQL
LearningMVCWithLINQToSQL
 
The Best Practices and Hard Lessons Learned of Serverless Applications - AWS ...
The Best Practices and Hard Lessons Learned of Serverless Applications - AWS ...The Best Practices and Hard Lessons Learned of Serverless Applications - AWS ...
The Best Practices and Hard Lessons Learned of Serverless Applications - AWS ...
 
AWS Startup Day - Boston 2018 - The Best Practices and Hard Lessons Learned o...
AWS Startup Day - Boston 2018 - The Best Practices and Hard Lessons Learned o...AWS Startup Day - Boston 2018 - The Best Practices and Hard Lessons Learned o...
AWS Startup Day - Boston 2018 - The Best Practices and Hard Lessons Learned o...
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Recently uploaded

Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubssamaasim06
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfSenaatti-kiinteistöt
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Chameera Dedduwage
 
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesPooja Nehwal
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyPooja Nehwal
 
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Delhi Call girls
 
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AIMicrosoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AITatiana Gurgel
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxNikitaBankoti2
 
Mathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptxMathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptxMoumonDas2
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Vipesco
 
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
Air breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animalsAir breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animalsaqsarehman5055
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxmohammadalnahdi22
 
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxraffaeleoman
 
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...Kayode Fayemi
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar TrainingKylaCullinane
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024eCommerce Institute
 
George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024eCommerce Institute
 
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, YardstickSaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, Yardsticksaastr
 

Recently uploaded (20)

Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubs
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)
 
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
 
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
 
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AIMicrosoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AI
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
 
Mathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptxMathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptx
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510
 
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
 
Air breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animalsAir breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animals
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
 
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
 
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
 
George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024
 
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, YardstickSaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
 

Amazon Rekognition Workshop

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Analyze Image Meta-Data with Amazon Rekognition +Athena Amit Agrawal - agramit@amazon.com Solution Architect, AWS
  • 2. Workshop Architecture You can have many cameras taking pictures in the store, these images can be use for multiple purposes e.g. facial recognition etc. You will: 1. Produce multiple images 2. Durably ingest and store the images in S3 bucket 3. Perform real time meta-data generation using Rekognition 4. Use Athena to perform ad-hoc queries 5. QuickSight to build dashboards. S3 Lambda Rekognition Bucket Athena QuickSight
  • 3. Objectives for Today Build an application using Amazon Rekognition and learn how we can analyze image meta data using Amazon Athena At the end of the workshop, you will: 1. Understand how to invoke Rekognition APIs 2. Understand how to create DB/table in Athena 3. Understand how to build dashboard in QuickSight by connecting directly with Athena
  • 6. Activity 1 Create IAM user and S3 buckets
  • 7. Activity 1: Setting up IAM role and S3 buckets We are going to: A. Create an AWS IAM role for Lambda function execution B. Create S3 bucket for input and output folders for the image processing We will use durable S3 service to store the captured images. S3 is an ideal service to store large number of data set as it provides 11 9s durability and automatic scalability. This solution will read input images from S3 bucket and will put meta data in the output folders.
  • 8. Activity 1-A: Create an AWS IAM Role You can use AWS IAM to securely control individual and group access to your AWS resources. You can create and manage user identities ("IAM users") and grant permissions for those IAM users to access your resources. To grant permissions, you create policy documents that you attach to users, groups, or other entities. In Activity 1-A, you will create an IAM role and attach policies to allow Lambda function access to Rekogniton Service, S3 bucket and CloudWatch logs. We will attaching this role when we configure S3 event later on.
  • 9. Activity 1-A: Create an AWS IAM Role 1. Go to the AWS IAM console, click “Users” 1. https://console.aws.amazon.com/iam/home?region=us-east- 1#/roles 2. Choose “Create Role” on the upper left hand side
  • 10. Activity 1-A: Create an AWS IAM role 3. Select RoleType from “AWS Service Role” 4. Click on AWS Lambda “Select” button
  • 11. Activity 1-A: Create an AWS IAM role 6. Choose “Attach policies” and then select following policies “AmazonS3FullAccess”, “AWSLambdaExecute” and ”AmazonRekognitionFullAc cess” 7. Click on “Next Step”
  • 12. Activity 1-A: Create an AWS IAM role 8. Choose name for the role for “Role Name” field 9. Provide description for the role in “Role Description” field 10. Click on “Create Role” button
  • 13. Activity 1-B: Create S3 Buckets Click on Service management console and select S3. Click on “Create bucket” button
  • 14. Activity 1-B: Create S3 Buckets 1. Provide unique “Bucket Name” and select region you want to create bucket in 2. Click on “Next” button Note: Please ensure that the bucket is created in same region where rest of the application will be. Bucket name has to be globally unique and should be selected sensibly.
  • 15. Activity 1-B: Create S3 Buckets 1. In next page leave the default setting and click on ”Next” button 2. Next page is for setting permissions, leave the default setting and click on “Next” button 3. Review the setting and click on “Create Bucket” button. Note: Please ensure that the bucket is created in same region where rest of the application will be. Bucket name has to be globally unique and should be selected sensibly.
  • 16. Activity 1-B: Create S3 Buckets 1. On main page click on “Create folder” button 2. Create following folders 1. csv 2. json
  • 18. Activity 2: Setting up Lambda function to process Images We are going to: A. Create a Lambda function using python 2.7 B. Configure S3 event to invoke Lambda function
  • 19. Activity 2: Setting up Lambda function 1. Go to the AWS Management Console 2. From the Services menu on the AWS Management Console, select Lambda service 3. Click on “Create a Lambda function” button Please make sure Lambda function is created in same region as S3 bucket.
  • 20. Activity 2: Setting up Lambda function 1. In the “Select Blueprint” screen, select “s3-get-object-python” option
  • 21. Activity 2: Setting up Lambda function 1. In “Configure trigger” screen fill up following information: 1. Select the bucket name from the drop down 2. In EventType dropdown select “Object Created (All)” 3. In Suffix field specify “jpg” 4. Check “Enable Trigger” check box 5. Click on “Next” button
  • 22. Activity 2: Setting up Lambda function 1. In “Configure Function” screen fill up following information: 1. In “Name” field provide name for Lambda function 2. In “Runtime” dropdown select Python 2.7 3. Copy lambda function from downloaded file to “Lambda function code” section Ensure that Runtime is selected as Python 2.7
  • 23. Activity 2: Setting up Lambda function 1. In “Lambda function handler and role” section: 1. In “Role” dropdown select “Choose an existing role” 2. In ”Existing Role” dropdown select the role we created in step 1. 2. Click on “Next” button 3. Next page review the information and click on “Create function” button
  • 25. Activity 3: Setup Athena Service 1. Open the AWS Management Console by clicking Open Console. 2. From the Services menu on the AWS Management Console, select Athena Service
  • 26. Activity 3: Setup Athena Service Click on “Add Table” section 1. In Database drop down select “Create New Database” 2. Provide Database name 3. Provide Table name 4. In “Location of Input of Data Set” provide the S3 bucket we created as part of step 2 s3://<region_name>/bucket_name e.g. s3://us-east-1/2017-ai-demo/csv
  • 27. Activity 3: Setup Athena Service To save time let’s paste the SQL statement in the query editor
  • 28. Activity 3: Setup Athena Service CREATE EXTERNAL TABLE IF NOT EXISTS <db_name>.<table_name> ( `ImageLocation` string, `Timestamp` string, `Gender` string, `Smiling` string, `Beard` string, `Mustache` string, `Sharpness` string, `Brightness` string, `MouthOpen` string, `EyesOpen` string, You can download SQL file from following link: https://s3.amazonaws.com/sfloftrekognitionmay09/Athena_TBL_Def.sql.txt
  • 29. Activity 3: Setup Athena Service `LowAgeRange` string, `HighAgeRange` string, `Eyeglasses` string, `Sunglasses` string ) ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH SERDEPROPERTIES ( 'serialization.format' = ',', 'field.delim' = ',' ) LOCATION 's3://<bucket_name>/csv/' Please don’t specify region detail in S3 bucket name
  • 30. Activity 3: Setup Athena Service To run the query select on Eye icon next to table name
  • 32. Activity 4: Testing Let’s test this before we setup QuickSight dashboard 1. Upload sample images we downloaded earlier to S3 bucket. 2. Once files are placed Lambda function will kick off and place files in csv and json folder 3. Go to Athena service and run select query and data should be populated in the table Sample CSV File: Sample Athena table data:
  • 33. Activity 4: Testing Let’s run some queries with where clause Select * from <database_name>.<table_name> where gender=’Female’
  • 35. Activity 5: Setup Amazon QuickSight Dashboard 1. In QuickSight Service menu Select Athena as data source 2. Specify Athena DB name in “Data Source name” field 3. Click on “Create data source” button
  • 36. Activity 5: Setup Amazon QuickSight Dashboard 1. Select the table name from the list 2. Select how you want to query the data either directly from the source or load it up in memory first. For this lab you can choose either
  • 37. Activity 5: Setup Amazon QuickSight Dashboard From designer window you can choose type of graph you want to build as well data you want to see. This example shows graph between count of people who are smiling by gender
  • 39. Activity 6: Clean up 1. Make sure you delete the sample images from the S3 bucket and then S3 bucket itself 2. Delete the Athena table and database 3. Delete the Lambda function
  • 41. Summary 1. Fully managed and easy-to-use image recognition service 2. Four primary capabilities • Object and Scene Detection • Facial Analysis • Face Comparison • Face Recognition 3. Integrated with AWS and AI Services • Amazon S3 • Lex and Polly 4. Scalable and low cost