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 AWS API gateway discovery and AWS Lambda discovery.

Role required: admin

Procedure

  1. Create an application service using the following properties for its entry point.
    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.
  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.


      Verifying the result of top-down discovery
    • 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.