Discover AWS Gateway APIs in Service Catalog with the Konnect UI

TL;DR

Install the AWS API Gateway integration in Konnect and authorize access with your Service Catalog role ARN, then link an API to your service.

Prerequisites

If you don’t have a Konnect account, you can get started quickly with our onboarding wizard.

  1. The following Konnect items are required to complete this tutorial:
    • Personal access token (PAT): Create a new personal access token by opening the Konnect PAT page and selecting Generate Token.
  2. Set the personal access token as an environment variable:

    export KONNECT_TOKEN='YOUR KONNECT TOKEN'
    

You need the Integration Admin role in Konnect to install and authorize Service Catalog integrations.

You need a REST API in AWS API Gateway to ingest and a correctly configured IAM role for this integration. You can name your AWS API Gateway API whatever you’d like. In this tutorial, we’ll refer to your AWS API Gateway API as aws-api.

You can follow the setup instructions in the UI wizard when you add the AWS API Gateway instance or do the following:

Configure the AWS API Gateway integration

Before you can discover APIs in Service Catalog, you must configure the AWS API Gateway integration.

  1. In the Konnect sidebar, click Service Catalog.
  2. In the Service Catalog sidebar, click Integrations.
  3. Click AWS API Gateway.
  4. Click Add AWS API Gateway instance.
  5. From the AWS region dropdown, select “US East (Ohio)”. If you’re using a different region, select your region from the dropdown.
  6. In the IAM role ARN field, enter the IAM role you configured for Service Catalog.
  7. In the Display name field, enter aws-api-gateway-test.
  8. In the Instance name field, enter aws-api-gateway-test.
  9. Click Save.

Create a Service Catalog service and map the API resources

Now that your integration is configured, you can create a Service Catalog service to map the ingested APIs.

In this tutorial, we’ll refer to your ingested AWS API Gateway API as aws-api.

  1. In the Konnect sidebar, click Service Catalog.
  2. Click New service.
  3. In the Display Name field, enter APIs.
  4. In the Name field, enter apis.
  5. Click Create.
  6. Click Map Resources.
  7. Select aws-api.
  8. Click Map 1 Resource.

Your integration APIs are now discoverable from one Service Catalog service.

You might need to manually sync your AWS API Gateway integration for resources to appear. From the Konnect UI by navigating to the AWS API Gateway integration you just installed and selecting Sync Now from the Actions dropdown menu.

Validate the mapping

To confirm that the AWS API Gateway resource is now mapped to the intended service, navigate to the service:

  1. In the Konnect sidebar, click Service Catalog.
  2. In the Service Catalog sidebar, click Services.
  3. Click the APIs service.
  4. Click the Resources tab.

You should see the aws-api resource listed.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!