Building an OCR service with Amazon Textract and AWS Lambda Step 1: User upload file to S3 bucket Step 2: The Lambda function is triggered Step 3: The text gets extracted from the image or PDF