Architecture overview - Text Analysis with Amazon OpenSearch Service (successor to Amazon Elasticsearch Service) and Amazon Comprehend

Architecture overview

Deploying this solution builds the following environment in the AWS Cloud.

Text Analysis with Amazon OpenSearch Service and Amazon Comprehend architecture on AWS

Figure 1: Text Analysis with Amazon OpenSearch Service and Amazon Comprehend architecture on AWS

The AWS CloudFormation template deploys an Amazon API Gateway to invoke the proxy microservice (AWS Lambda function). The microservice provides the business logic to manage the preprocessing configuration, native indexing, and other native search capabilities. The microservice interacts with Amazon Comprehend for text analysis, Amazon CloudWatch Logs for logging and metrics, and Amazon OpenSearch Service for indexing documentation.

When the API receives an authorized request, the proxy microservice sends the request to Amazon Comprehend for text analysis. A call is made to Amazon OpenSearch Service which indexes the data, and publishes logs and metrics to CloudWatch.

You can visualize the indexed data on the solution’s pre-configured Kibana dashboard.