I'm trying to implement the following structure on my AWS account. I'll upload a picture to my s3 bucket with a put/post request and process the following picture with Textract. API call for the Textract will be handled by Lamda. So here is the question. Will the response of the lambda be my response to put/post request? I mean when I put/post via API gateway there got to be a response. I'd like to see this response content from Lambda's response. Is it possible by the following structure?
Return value of the Lambda can be seen by response of API gateway?
609 Views Asked by hburak_06 At
2
There are 2 best solutions below
1
Mark B
On
The response to the PUT/POST request will be a 200 OK response indicating that the file was successfully uploaded to S3. The API Gateway response will be returned as soon as the file upload to S3 is completed. As far as API Gateway knows the entire process is done at that point. The S3 trigger that invokes your Lambda function happens asynchronously, after your S3 upload has completed, so that can't be involved in the response to the PUT/POST request.
Related Questions in AMAZON-WEB-SERVICES
- "Access Denied" - User's Permissions to S3 Bucket
- Cohort analysis with Amazon Redshift / PostgreSQL
- Using Amazon KMS service on Heroku
- can't ssh in after cloning an EC2 instance on Amazon AWS
- Using HDFS with Apache Spark on Amazon EC2
- How can I access Mule ESB Community edition via browser?
- AWS EC2: Migrating from Windows to Linux Server
- AWS ELB Load Balancer: is it possible to set multiple session cookies?
- AWS Flow Framework: Can we run activity worker and activity task on different EC2 instances
- Unable to access files from public s3 bucket with boto
- Cloudfront stream only part of the video
- s3cmd not working as cron-task when echos/dates are added
- How to deploy django 1.8 on Elastic Beanstalk using Docker
- InstanceProfile is required for creating cluster - create python function to install module
- How to fix WordPress HTTPS issues when behind an Amazon Load Balancer?
Related Questions in AMAZON-S3
- Convert JSON.gz to JSON in node js
- Downloading objects from S3 with presigned URL
- "Access Denied" - User's Permissions to S3 Bucket
- jQuery file upload to S3 (and rails) with CORS headers
- copying file from local machine to Ubuntu 12.04 returning permission denied
- AWS Flow Framework: Can we run activity worker and activity task on different EC2 instances
- Unable to access files from public s3 bucket with boto
- s3cmd not working as cron-task when echos/dates are added
- AWS S3 object listing
- React-native upload image to amazons s3
- S3 restrictions on quantity of object downloads
- How to upload a photo in Meteor to S3 and have it sync to database item?
- Limit upload size to S3 with presigned URL
- dragonfly-s3 with S3 IAM user causing a forbidden 403 response from Amazon
- Split S3 files into multiple output files
Related Questions in AWS-LAMBDA
- How to get rows count from Amazon DynamoDB using Lambda AWS
- Querying DynamoDB with Lambda does nothing
- undefined is not a function after refactor
- Async AWS Lambda not executed if caller returns too early
- In amazon lambda, resizing multiple thumbnail sizes in parallel async throws Error: Stream yields empty buffer
- How to upload an object into S3 in Lambda?
- How to do image overlay and watermark using node.js in amazon lambda function
- Base64 encode UserData parameter for EC2 RunInstances using AWS Lambda
- AWS Lambda PHP Create Function with Zip
- Triggering a AWS Lambda from a form post
- Zip Files & Folders With No Base Directory
- Dynamically loading jar from arbitrary url
- AWSTask is not instantiable
- AWS Custom Authorizer with request parameters
- Parse OSM PBF in AWS Lambda and S3
Related Questions in AWS-API-GATEWAY
- AWS Custom Authorizer with request parameters
- How can i call AWS Step Functions by API Gateway?
- AJAX seems to be unable to GET AWS API Gateway even with CORS enabled
- AWS API Gateway - How do I get the date/timestamp/epoch in a body mapping template?
- Serverless CORS Error: Did not find method in CORS header ‘Access-Control-Allow-Methods'
- How do I use a Firebase Hosting SSL Certificate for AWS API Gateway?
- How do I call an AWS_IAM authorized API Gateway endpoint from AWS Lambda who's execution role has permission to do so?
- Specify the Headers for Office 365 Push Notifications
- Passing ARN reference from CloudFormation to Swagger
- Error message when calling Api Gateway with signature
- CORS defeats AWS LAMBDA :(
- AWS APIGatewayClient(Swift) doesn't work in Swift3?
- IAM user id from AWS signature?
- Why is the deployment zone is greyed out in AWS api gateway deployment?
- AWS API Gateway proxy endpoint
Related Questions in AMAZON-TEXTRACT
- How to specify the required Key value paid when calling the AWS Textract API?
- Unable to start a human loop using Augmented AI - Error in start_human_loop
- Using AWS Textract for processing PDF
- How to highlight custom extractions using a2i's crowd-textract-analyze-document?
- Using Textract, how do you extract tables from a pdf file and output it into a csv file via .py script?
- Getting an InvalidS3ObectException when calling the StartDocumentAnalysis operation from AWS textract, but only on files with spaces in the name?
- Save a textract trp document as a json
- AWS textract ignores some text fragments
- Extracting data from pdf using AWS textract
- AWS Textract Asynchronous Queue Messaging
- unable to extract text using tika in sagemaker, what is the reason for this?
- can we save key value pair extracted from the document using aws sdk textract java v2 to seprate database in sqlyog? if yes what is the process?
- How does AWS Textract measure the number of pages?
- Does AWS Textract support Hindi text in a png file?
- Problem connecting AWS Textract and S3 storage to run aynchronous operation on PDF files. Getting error "InvalidS3ObjectException"
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

There are two parts here and, in your current diagram, what you want to do isn't possible directly. The S3 to Lambda call is not part of the same flow - it is done for you by AWS and you don't have direct control over it.
Additionally, it may take some time to do the extraction, depending on the complexity of the documents uploaded. Not hours but not instantaneously either.
So it will need to change to a disconnected model where the request is sent off and then some time later you either poll for a result or are notified that a result is available.
Conceptually, more like this: