Integrating Runscope API Monitoring with Amazon API Gateway

Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs. By connecting Amazon API Gateway with Runscope you can automatically create API Tests by importing API specifications from your AWS account.


Create an IAM User and Policy with API Gateway Access

Sign into your AWS Console and select Identity & Access Management (IAM), then Users.

Select "Create New Users", enter a username (e.g. runscope) and leave "Generate an access key for each user" selected. Important! Once the user has been created, select "Show User Security Credentials" and copy the Access Key ID and Secret Access Key (you won't be able to view these again later) to provide to the Runscope connection screen later on.

Once the user is created you need to attach a policy granting the user access to your API Gateway configuration. You can do this by creating a policy to be shared across users, or a user-specific inline policy. To create the inline policy, select the user, the Permissions tab, select "Create User Policy", then "Custom Policy". Paste the following into the policy editor and save your changes.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "apigateway:*"
      ],
      "Resource": [
        "*"
      ]
    }
  ]
}

Connect To Runscope

From your Connected Services settings click "Connect Amazon Web Services" from the list of integrations.

Enter the username, AWS Access Key ID, and AWS Secret Access Key into the fields provided. Your credentials will be securely stored within Runscope.


Create Tests from API Gateway Configuration

Once connected, select AWS API Gateway from the test importer and elect the API you'd like to import from to complete the import.