- Lab
- A Cloud Guru
Implementing an Elasticsearch Backed Search Microservice
In this lab, we will create a Lambda function which will connect the provided web interface to an Elasticsearch domain to provide search functionality. **Note:** This lab can have extended launch times (10 to 30 minutes).
Path Info
Table of Contents
-
Challenge
Investigate the Lab Environment
With the provided information, log in to the AWS web console and look around at the provided resources. You should find:
- An Elasticsearch domain
- A Franken_Search Lambda function
- An S3 bucket containing the files for the Frankenwords site
- An API Gateway configured to trigger the Franken_Search Lambda function
-
Challenge
Update the Lambda Function
Update the Franken_Search function to forward an appropriately formatted query to the provided Elasticsearch domain and return a JSON string with the required information.
The JSON object, which is expected by the frontend site, should be structured as follows:
{ "total_hits": integer, "chapter_count": integer, "total_score": float, "hits": [ { "location": string, "score": float } ] }
-
Challenge
Test Frankenwords!
Test the Frankenwords site to ensure functionality, and learn how often words and phrases are used in Mary Shelley's Frankenstein!
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.