---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Test AWS API Gateway and AWS Lambda patterns

# Test patterns for discovering AWS API Gateway and AWS Lambda {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Run the horizontal and top-down discovery using Amazon AWS API Gateway
\[cmdb_ci_cloud_gateway\] and Amazon AWS Lambda \[cmdb_ci_cloud_function\] patterns. Verify that
the result is as expected.

## Before you begin

Make sure that your deployment complies with all the prerequisites for [Amazon API Gateway discovery with Patterns](https://servicenow-prod.fluidtopics.net/uCF2ONs1PORy3rnBA5qB9Q "The ServiceNow Discovery and Service Mapping applications use the Amazon AWS API Gateway pattern to find Amazon API Gateways and connections to other entities. Discovering some of these resources may require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.") and [AWS Lambda discovery with Patterns](https://servicenow-prod.fluidtopics.net/gwRL4X3HP9eeueudbVsknQ "The ServiceNow Discovery and Service Mapping applications can find and map Lambda functions that run in your AWS cloud. Discovering some of these resources may require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.").
Role required: admin

## Procedure

1. Create an application service using the following properties for its entry point.  
   {#test-patterns-for-discovering-aws-api-and-aws-lambda__table_mbs_ckb_1db__entry__2}

   | Field | Description |
   |-|-|
   | CI type | HTTPS |
   | URL | The URL for invoking the API Gateway. Typically, the API GW has the following format: https://{restapi_id}.execute-api.{region}.amazonaws.com/{stage_name}/ For example, https://k40o0l3af6.execute-api.us-east-1.amazonaws.com/prod/. For information about the URL format, see <https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-call-api.html>. Note: The default stage_name parameter is prod. |
   [ ]

   {#test-patterns-for-discovering-aws-api-and-aws-lambda__table_mbs_ckb_1db}
2. Click Discover.  
   Service Mapping runs the top-down discovery using the Amazon AWS API Gateway \[cmdb_ci_cloud_gateway\] pattern.

   After Service Mapping
   completes identifying the API Gateway configuration item (CI), it runs the
   Connection to APIs connection section and
   discovers connection to the AWS Lambda. It then runs the Amazon AWS Lambda
   \[cmdb_ci_cloud_function\] pattern and identifies the AWS Lambda
   CI.
3. After Service Mapping finishes to discover this application service, verify that it discovered and identified AWS components correctly.  
   Check that the following actions happen:
   * Service Mapping correctly resolves the URL, finds all IP addresses behind it and creates an entry point for each IP address.

     <br />

     <br />

   * Service Mapping identifies the AWS API Gateway and creates an application cluster for IP address.

   * The Properties pane shows the properties for the AWS API Gateway: Cloud Gateway \[cmdb_ci_cloud_gateway\].
   * Service Mapping discovers the AWS Lambda connected to the application cluster for API Gateway.
   * Service Mapping discovers the databases connected to AWS Lambda.
   {#test-patterns-for-discovering-aws-api-and-aws-lambda__ul_vmp_4pb_1db}

