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
- S3 integration testing
- How to get content of BLOCK types LAYOUT_TITLE, LAYOUT_SECTION_HEADER and LAYOUT_xx in Textract
- Error **net::ERR_CONNECTION_RESET** error while uploading files to AWS S3 using multipart upload and Pre-Signed URL
- Failed to connect to your instance after deploying mern app on aws ec2 instance when i try to access frontend
- AWS - Tab Schema Conversion don't show up after creating a Migration Project
- Unable to run Bash Script using AWS Custom Lambda Runtime
- Using Amazon managed Prometheus to get EC2 metrics data in Grafana
- AWS Dns record A not navigate to elb
- Connection timed out error with smtp.gmail.com
- AWS Cognito Multi-tenant Integration | Ok to use Client’s Idp?
- Elasticbeanstalk FastAPI application is intermittently not responding to https requests
- Call an External API from AWS Lambda
- Why my mail service api spring isnt working?
- export 'AWSIoTProvider' (imported as 'AWSIoTProvider') was not found in '@aws-amplify/pubsub'
- How to take first x seconds of Audio from a wav file read from AWS S3 as binary stream using Python?
Related Questions in AMAZON-S3
- Mocking AmazonS3 listObjects function in scala
- S3 integration testing
- Error **net::ERR_CONNECTION_RESET** error while uploading files to AWS S3 using multipart upload and Pre-Signed URL
- Golang lambda upload image into s3 static website
- How to take first x seconds of Audio from a wav file read from AWS S3 as binary stream using Python?
- AWS Lambda Trigger For Same S3 File Name In Quick Succession
- Is there a way to upload a file in digital ocean object storage using php curl
- How to setup AWS credentials for next.js apps?
- S3 pre-signed url not working on whatsapp cloud Api
- How to set custom Origin Name in AWS CDK for CloudFront
- Property 'location' does not exist on type 'File'
- Resource handler returned message: "Unable to validate the following destination configurations
- Webmin CentOS7 AWS backup errors - perl(S3::AWSAuthConnection) can't be installed
- How to access variable to pass through url_for() as src in Flask App
- I cant figure out how to pull scripts from s3 to my aws workspace
Related Questions in AWS-LAMBDA
- Query parameter works fine with fastapi application when tested locally but not working when the FastAPI application is deployed on AWS lambda
- Lambda endpoint for the Google OAuth callback does not recieve the access_token
- Golang lambda upload image into s3 static website
- Unable to run Bash Script using AWS Custom Lambda Runtime
- Call an External API from AWS Lambda
- AWS Lambda Trigger For Same S3 File Name In Quick Succession
- Trouble Extracting Request Body in Flask-Lambda Application Deployed on AWS Lambda via AWS SAM
- S3 pre-signed url not working on whatsapp cloud Api
- 'Load failed' error when trying to create a function in AWS lambda
- Using Python CDK to bundle dotnet 8 code to AWS Lambda function
- AWS WebSocket API return forbidden (403) error when sending message
- Pass integer value in json serializable Python Object
- AWS Lambda successfully called with 'Function URL', but not with 'API Gateway'
- How do I create a *clean* AWS lambda function in python?
- Laravel Vapor Queue Dynamic DB Connection Issue for Different Requests
Related Questions in AWS-API-GATEWAY
- Lambda endpoint for the Google OAuth callback does not recieve the access_token
- AWS WebSocket API return forbidden (403) error when sending message
- AWS Lambda successfully called with 'Function URL', but not with 'API Gateway'
- How to establish connection pooling for HTTP Requests Lambda function attached to AWS API gateway?
- Allow AWS API Gateway to return YAML format, when a specific JSON property equals YAML
- AWS ApiGateway StartSyncExcecution CORS configuration via SAM or CLI
- How to reference existing lambda in sam template
- AWS ApiGateway Documentation support to Open Api 3.1
- Using AWS API HTTP Gateway with HTTP Backend without 301 redirection
- How to get geolocalisation , request from AWS API Gateway?
- Issue with API Gateway-Lambda Integration: Consistent 504 Timeout Despite Quick Lambda Execution
- Exporting openAPI specification with terraform + apigateway + AWS?
- Cloudwatch Alarm 4xx Errors API Gateway Terraform
- AWS API Gateway custom domain path configuration
- How to LIMIT cost to 100 API calls max in a day even if someone has my API endpoint details
Related Questions in AMAZON-TEXTRACT
- How to get content of BLOCK types LAYOUT_TITLE, LAYOUT_SECTION_HEADER and LAYOUT_xx in Textract
- Image cropping from AWS Textract's analyze_expense method
- How to pass S3 object and Key to HumanLoopInput of start_human_loop
- Extraction of Layout List from the AWS Textract
- AWS Textract start_document_analysis is not allowing me to use AdapterConfig in my lambda function
- UnsupportedDocumentException: An error occurred (UnsupportedDocumentException) when calling the AnalyzeDocument operation: Request has unsupported doc
- How to get pdf page number in aws textract
- Encountering Error while Analyzing Textract with Multiple Pages
- How does NotificationChannel from the function StartExpenseAnalysisCommand of Amazon Textract works? AmazonTextract unable to publish msg to SNS
- aws textract error in blocks_map/ no child_id in blocks_map (on aws lambda)
- AWS Textract NodeJS: Detect document from local content as opposed to an S3 url
- Merging PDF gives me UnsupportedDocumentException when using AWS Textract
- springboot aws textract project occuring Web server failed to start. Port 9090 was already in use even after following steps to resolve
- 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?
- unable to extract text using tika in sagemaker, what is the reason for this?
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 # Hahtags
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: