# AWS for Test Recommendations

The ThousandEyes integration with Amazon Web Services (AWS) allows you to monitor the critical AWS resources you host within Amazon's API Gateway, CloudFront and Global Accelerator services. ThousandEyes provides a quick and easy way to securely connect to your AWS account, discover your API endpoints (for API Gateway), domain names (for CloudFront), and load balancers (for Global Accelerator), and generate the appropriate test recommendations to help monitor these resources in ThousandEyes.

This article describes how to configure the ThousandEyes integration with AWS for test recommendations, set up the resulting recommended tests, and view their results. The basic steps are:

1. Check the [prerequisites](#prerequisites).
2. In ThousandEyes and AWS, [create the integration](#creating-the-aws-integration).
3. [Create recommended tests](#creating-recommended-tests) to monitor the services you rely on.
4. [View the results](#viewing-your-test-data) of your tests.
5. [View the dashboard](#viewing-your-api-gateway-dashboard) (for API Gateway tests only) that provides an overview of your API performance.
6. [View the alerts](#viewing-your-alerts-and-notifications) associated with your tests and set up notifications.

{% hint style="info" %}
This integration and its resulting recommendations, tests and template are only accessible and visible in the account group within which it is created.
{% endhint %}

## Prerequisites

You must have the following account requirements and permissions to successfully set up your AWS integration.

### Account Requirements

To use the features described in this document, you must have both of the following:

* An active account for Amazon Web Services.

  You will need to create an [Identity and Account Management (IAM) Role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) for ThousandEyes within your AWS account, which includes providing permission and trust policies. See [Creating the AWS Integration](#creating-the-aws-integration) for how to do this.
* An active account for ThousandEyes.

### AWS Permissions

In AWS, you need permissions to create roles and policies. How you attain these permissions depends on which interface you use (e.g., [console](#aws-console) or [command line](#aws-command-line-interface-cli)). Make sure you have the correct permissions according to your interface preferences; see [Permissions required to access IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awsidentityandaccessmanagementiam.html).

### ThousandEyes Permissions

To create the integration, you must have an Organization Admin or Account Admin role in the ThousandEyes platform. To enable or activate test recommendations, you must have an Organization Admin role. For more information about ThousandEyes roles, see [Role-Based Access Control, Explained](https://docs.thousandeyes.com/product-documentation/user-management/rbac/role-based-access-control-explained).

## Creating the AWS Integration

To create your ThousandEyes integration with AWS for test recommendations, it is easiest to be logged into both services at the same time, as you will need to provide information within both services that is dynamically generated within the other.

View a simplified flow of steps between ThousandEyes and the AWS IAM Console below.

![AWS integration overview](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-cdb6519a47472531e309bced93003bf681a85ed1%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_1.png?alt=media\&token=430ffc81-f48b-4c15-bead-c7f6bb771661)

1. In ThousandEyes, go to **Manage > Integrations** from the left menu.
2. Click **+ New Integration** in the top right.

   ![Integrations screen](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-1af1ce0d4509d8324c9fbc49fd427c7944269508%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_2.png?alt=media\&token=24dd903f-ea6c-470f-b587-4359c2841594)
3. Select **Amazon Web Services** from the available options. An **Add AWS Integration** side panel opens.

   !["Add AWS Integration" side panel](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-9d2bf6297d9e2ba89319e73a297e8bc3a8d445ed%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_3.png?alt=media\&token=aa6a1e4e-8562-4845-abdf-9859a39cd4d9)
4. Enter the values for your AWS instance as follows:

* **Name**: Give your integration a unique name. Duplicate names are not permitted.
* **ThousandEyes Supported Services**: Make sure **Test Recommendations** is selected.

At this point, you will need to switch to your AWS account to create an [IAM Role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) for ThousandEyes. You can choose to do this in the [AWS Console](#aws-console) or in the [Command Line Interface](#aws-command-line-interface-cli).

**Note**: You must be logged in as an IAM Administrator to complete the steps below.

For the best and most up-to-date information regarding steps to take in AWS, view AWS’s integration documentation through the links provided.

### AWS Console

1. If using the AWS Console, go to <https://console.aws.amazon.com/iam/>.
2. Create the permission policy first, using the steps outlined in [Creating policies using the JSON editor](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_create-console.html#access_policies_create-json-editor).

* Where AWS prompts you to paste in a “JSON policy document”, paste in the permission policy generated in the ThousandEyes **Add AWS Integration** panel. There is a “copy” icon on the **Permission Policy** header in ThousandEyes for this purpose. The permission policy covers permissions for API Gateway, CloudFront and Global Accelerator by default.

![Console permission policy](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-c945441bd3e9a87d2091eaa0b743f26a10cae3f8%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_4.png?alt=media\&token=4642ad73-3b47-4efe-8af0-a9a260a57b02)

* **Note**: you do not need to follow any of AWS’s optional steps.

3. Next, follow the steps outlined in [Creating an IAM role using a custom trust policy (console)](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-custom.html). These steps include creating the trust policy and the role for ThousandEyes.

* Where AWS prompts you to paste in a “custom trust policy”, paste in the trust policy generated in the ThousandEyes **Add AWS Integration** panel. There is a “copy” icon on the **Trust Policy** header in ThousandEyes for this purpose.

![Console trust policy](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-d75e408a65948c9ad66a0f8a944512847551727d%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_5.png?alt=media\&token=ea3a0015-41e1-4055-9748-460d0348fb2a)

* Where AWS prompts you to **Add permissions**, locate in the generated list the permission policy you created in Step 2 and select the checkbox next to its name to assign it to the role.
* **Note**: you do not need to follow any of AWS’s optional steps.

4. Now that you have created an IAM Role for ThousandEyes, you need to collect the Account Resource Name (ARN) from AWS to paste it into the ThousandEyes **Add AWS Integration** panel.

* In the AWS Console at <https://console.aws.amazon.com/iam/>, click on **Roles**.
* In the list of roles that appear, scroll or search for the role that you just created, and click on it.
* At the top of the resulting page, you will find your ARN in the **Summary** box.
* Use the “copy” symbol next to the ARN to copy it.

5. Return to the **Add AWS Integration** panel on the ThousandEyes platform.

* Paste into the **Account Resource Name (ARN)** field the ARN that you just copied. It will look something like `arn:aws:iam::123456789098:username`.
* When all fields in ThousandEyes and AWS are completed, click **Test**.
* A callout box at the top of the panel tells you whether testing succeeded or failed. If failed, see [Failed Testing](#failed-testing) for next steps.

![Testing successful message](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-15ef3a6c765faf5de7d84bafda636c94af1e2bb7%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_6.png?alt=media\&token=52bdb198-6c66-4ca9-a4e7-9896ff9e7c16)

* If testing succeeded, click **Save**.

The side panel closes back to the **Manage > Integration** screen and two messages appear in the bottom right of your screen. The first confirms success of the saved integration. The second explains that the service discovery is taking place. While this is happening, your integration shows a status of **Pending**. Note that you cannot set up your recommended tests until service discovery is complete, resulting in a status of **Connected**.

![Saving successful and service discovery messages](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-9b5eec452b01e0370477a5f11105fdc595961b50%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_7.png?alt=media\&token=b679c59e-e46d-4d9a-a3b4-c956a1689fb5)

### AWS Command Line Interface (CLI)

Unlike with the AWS Console, in the CLI, you create the role and trust policy first, then add the permission policy after. You can find additional instructions and explanation of how to set up an IAM Role using the CLI from [Configuring and using a role](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-role.html#cli-role-prepare).

The following assumes you are using AWS CLI version 2. However, the same steps will work with version 1.

1. Open your preferred terminal.
2. In ThousandEyes, go to **Manage > Integrations**.
3. Click **+ New Integration** in the top right.
4. Select **Amazon Web Services** from the available options. An **Add AWS Integration** side panel opens.
5. Select the services you would like to integrate with within ThousandEyes using the **ThousandEyes Supported Services** dropdown.

* The permission policy updates dynamically based on the services you choose in this field.

6. Open and copy the commands within the **Trust Policy** field. There is a “copy” icon on the **Trust Policy** header for this purpose.

![CLI trust policy](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-63a844f4f5c75b44bdbd76d499c91b2d8d2a3ef8%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_8.png?alt=media\&token=298863cb-2fa0-4793-ac46-03786ab9788b)

7. Paste the commands within the terminal.
8. Enter your preferred `--role-name` and `--description` as required.
9. Hit Enter.
10. Check that the role was created successfully: for successful `create-role` commands, the whole role will be returned in the response body.

* If role creation fails, you will receive an error message explaining what error has occurred.

11. Within the response body is the new role’s Account Resource Name `"ARN"`. Copy the ARN.
12. Go back to the **Add AWS Integration** dialog on ThousandEyes.
13. Paste into the **Account Resource Name (ARN)** field the ARN that you just copied.

With the role created, you now assign the permission policy to the role.

1. In the ThousandEyes **Add AWS Integration** panel, copy the commands within the **Permission policy** field. There is a “copy” icon on the **Permission policy** header for this purpose.

![CLI permission policy](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-e0a5a288d51e5c1f8e34773567b834ed23dc684f%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_9.png?alt=media)

2. Paste the commands within the CLI.
3. Enter your preferred `--role-name` and `--policy-name` as required.
4. Hit Enter.
5. Check that the permission was assigned successfully. For the `put-role-policy` command, no success response is returned. However:

* If permission assignment fails, you will receive an error message explaining what error has occurred.

6. Go back to the **Add AWS Integration** dialog on ThousandEyes.
7. Click **Test**.
8. If Testing was successful, click **Save**.

### Successful Integration

View your completed integration on the **Manage > Integrations** screen. Note its status in the **Status** column, and the services you selected in the **Supported Services** column.

![Status and Supported Services columns](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-60871316d2bfb2464179bdb96f4ed3094cbf8b35%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_10.png?alt=media\&token=7375290a-09fd-48bc-bec4-00bf87e0f67b)

If the **Status** column shows **Connected**, your integration is ready and you can start [using ThousandEyes test recommendations](#creating-recommended-tests). Note that for AWS integrations, you can only have a status of Pending, Connected or Failed.

{% hint style="info" %}
A status of **Connected** means that the ThousandEyes platform was able to generate at least one recommendation. If you do not see all the recommendations that you expect in the [Recommendations](#creating-recommended-tests) dialog, or if your status is **Pending** and does not resolve to **Connected** or **Failed** after 30 minutes (note, you will need to refresh the page to see the status change), you may have encountered a backend error. You will need to raise a ticket with ThousandEyes Support.
{% endhint %}

### Failed Integration

If your integration didn’t pass saving, your integration status will read **Failed**. Failure may result from, for example, trying to create a duplicate AWS integration in the same account group, or not having the right permissions. Click on your integration to open the side panel and to check your settings in the dialog. Ensure that you have entered valid AWS credentials and that you are an IAM Administrator.

If the integration continues to fail, contact ThousandEyes Support.

## Creating Recommended Tests

Now that you have set up the integration, put it to work: the connection between AWS and ThousandEyes brings information into ThousandEyes about AWS services such as API Gateway, CloudFront and Global Accelerator in your AWS account. With this information, the ThousandEyes platform recommends tests, test configurations, and templates including dashboards (for API Gateway only), labels, and default alerts, to bring you quick, full visibility of those services. For more information about how to deploy templates, see [Templates](https://docs.thousandeyes.com/product-documentation/tests/templates).

To set up recommended tests, do the following:

1. Go to **Network & App Synthetics > Test Settings**.
2. Click **Start Monitoring**.
3. Select AWS under "Start with ThousandEyes based recommendations".

![Add from recommendations button](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-40fc444f7f74ce9fdcdb73d7a67eff206ef58eae%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_11.png?alt=media\&token=dc23eb3a-2fbf-4113-bf3f-ccfa9bcdeeda)

* Alternatively, find your integration on the **Manage > Integrations** screen, open the ellipsis dropdown menu, and click **View Test Recommendations**.

![View test recommendations button](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-07a2507a86bf906c4d20ca8e69b6cd9b84c02353%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_12.png?alt=media\&token=63f59d32-7ee8-4429-89d0-b12716aa4ad5)

* The **Recommendations** dialog appears. It lists all the integration instances for test recommendations you have set up, including those for the AWS.
* API Gateway instances are listed as separate items. All CloudFront and Global Accelerator resources are grouped into a single instance, as displayed in the image below.

![Recommendations dialog, step 1 of 4](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-088ba290bf60ab49a74d007ce6f55611b0a9ce8b%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_13.png?alt=media\&token=1391044b-294a-4c06-8f25-9350300b0167)

{% hint style="info" %}
By default, the ThousandEyes platform names each API Gatweway instance with the API endpoint name from the API Gateway followed by its staging environment. Any APIs that belong to separate regions are also given separate instances. For example, if on the API Gateway you named your API endpoint “Fred” and it belonged to both the “Astaire” and “Mercury” environments in US-West-1 and US-East-1, ThousandEyes would create four instances in the test recommendations dialog; two called “Fred-Astaire” – one for each region – and two called “Fred-Mercury” – one for each region. You can change the instance name if you wish during your test template setup. You will find your Integration Name on the second line below the instance name. You can search for your integration instance via the search bar or \*\*Integration Instance\*\* filter.
{% endhint %}

![Integration Instance filter](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-7f62c75167c7ca839a03c5de0ddc362042858e0b%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_14.png?alt=media\&token=79d24b37-d838-454b-b081-49df54ad8247)

2. In the **Step 1 of 4 – Select Instance** pane, select the resources you wish to configure.

* **Note**: you can select a maximum of 50 resources at any given time.

4. In **Step 2 of 4 – Select Targets** (for API Gateway) or **Step 2 of 4 – Select Locations** (for CloudFront and Global Accelerator), select the desired targets/locations and methods (for API Gateway only) among the list that you wish to configure tests for.

![Recommendations dialog, step 2 of 4](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-ce3e6bbfe83e050c12ea927a26e818c55fcf40aa%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_15.png?alt=media\&token=7359e0a1-6a33-4b07-81af-f9ee9f6db35d)

* For CloudFront and Global Accelerator tests, a banner appears above the location table indicating how many resources (absolute and percentage) are currently monitored by ThousandEyes tests. Those that are already currently monitored are greyed out and cannot be selected for deployment as part of the template.

![Monitoring coverage banner](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-76b4fc324d58ef142b49c5b5a7795be2084583f7%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_15a.png?alt=media\&token=39502e57-8bd6-41cf-98a5-dae1f9d9c0c2)

4. Click **Configure Tests**.

* **Note**: Some API Gateway tests may result in a warning that they will need further configuration after test deployment. See [Configuring API Gateway Tests Post-Deployment](#configuring-api-gateway-tests-post-deployment) for further information.

**Step 3 of 4 – Configure tests** shows the **Global Settings** pane.

Your settings in the **Global Settings** pane will apply to all the tests you are creating for all the resources you just selected, which are listed on the left of the pane.

![Recommendations dialog, step 3 of 4](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-dd642601f0201324b46ea75a119a9d1906b58add%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_16.png?alt=media\&token=3c74727a-326c-486a-a60b-df6f8dd32444)

5. Select the agents that should run the tests you are creating.

* A quick way to select appropriate agents is to use the built-in tags in the agent selection drop-down.
* For backend services, we recommend that you use Enterprise Agents for monitoring. **Note**: Enterprise Agents must have BrowserBot installed to run API tests (see [What is BroswerBot](https://docs.thousandeyes.com/product-documentation/global-vantage-points/enterprise-agents/what-is-browserbot) for more information). For frontend services, we recommend that you use Cloud Agents for monitoring. For more information on agent types and their differences, see [Global Vantage Points](https://docs.thousandeyes.com/product-documentation/global-vantage-points).

6. Set the frequency at which the tests should run.
7. Give your instance test template a new name if you wish (see note in Step 1, above).
8. \[Optional] If you want to override the global settings for individual tests, you can do this now by selecting each test from the list under **Global Settings**. If not, the configuration in **Global Settings** will apply to all the tests you are creating. You can also adjust your tests’ settings at any point in the future.

![Individual test settings](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-095b03a2a2dbec7f3a754f9a71d1505273d81eba%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_17.png?alt=media\&token=5a32f7ba-0b84-4dca-b0d9-8fe138ad5189)

9. Click **Review**.
10. In **Step 4 of 4 – Review template**, review the selections you’ve made and the tools – tests, dashboards (for API Gateway only), and labels (given the same name as your instance name) - that will be created.

![Recommendations dialog, step 4 of 4](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-15de23bc3ddcb43497e4aa2ae3caf740cee2f5bd%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_18.png?alt=media\&token=8fbf3c64-2bd8-4053-bf81-0a920ca51400)

11. Click **Deploy Now**.
12. Finally, view the tests (or dashboards if configuring API Gateway) you just created from the confirmation screen of the **Recommendations** dialog.

* For test settings, click **Go to Test Settings**. Click the arrow next to your new tests to see their configuration details. For detailed information about the **Test Settings** screen, see [Tests](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests).
* **For dashboards (for API Gateway only), click** **Go to Dashboards.** This takes you directly to the dashboard you just created from the test recommendations dialog. Note that some widgets will take time to load and show data as testing will have only just begun. For detailed information about viewing dashboards, see [Dashboards](https://docs.thousandeyes.com/product-documentation/dashboards).

![Setup complete message](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-83aa9a1061fa563d1b844f93f9b57c3ce16c098f%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_19.png?alt=media\&token=43f56308-2c33-47c0-9d72-7f236f643600)

13. To finish without viewing your test settings or dashboards, click **Done**.

* You can access your test settings, views, and dashboards any time by [viewing your tests](#viewing-your-tests), [viewing your test data](#viewing-your-test-data) and [viewing your dashboard](#viewing-your-api-gateway-dashboard).

## Configuring API Gateway Tests Post-Deployment

Some API Gateway tests require configuration beyond what is possible in the recommendations dialog. While this does not affect successful completion of the dialog, the tests that fall into this category will not run until you complete their configuration in **Network & App Synthetics > Test Settings**. You will know whether any of your tests fall into this category after step 5, above, from [Creating Recommended Tests](#creating-recommended-tests). On the **Step 3 of 4 – Configure tests** pane, a warning message will appear to inform you that at least one of the tests you are setting up will require further configuration after deployment.

![Warning message](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-76710ec74fcb6349c1a6c187cbcb87caf07a9dee%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_20.png?alt=media\&token=d482419f-d569-44f3-a88e-21a76845e7f7)

Generally, any test targeting API Gateway that requires specific headers, parameters or request paths will need post-deployment configuration.

There are a number of ways to access the test settings screen to finish your configuration:

1. On the final screen of the recommendations dialog, you will find a link to the test settings screen.

![Partial completion message](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-71cabd01c83de8c230885467ac5d120e0c246f23%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_21.png?alt=media\&token=1edfb0f2-afb8-4831-a2dd-dba133e47628)

2. If you have already clicked away from the recommendations dialog, go to **Network & App Synthetics > Test Settings**.
3. In the Notifications dropdown at the top of the screen, find a link to the test settings screen in the notification about your unfinished test configurations.

![Notification message](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-9143705bc0562df23aa4fb5c2363636e4e9198ce%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_22.png?alt=media\&token=95b9c6b7-0239-4ceb-a4f6-5ccc05fccbea)

From here, follow these steps to finish your test configuration.

1. When you arrive at **Test Settings**, you will see another warning message. Click the **Filter Tests** button to view only those tests that need further configuration. Each partially configured test displays a yellow warning symbol next to the Type.

![Filter tests button](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-9ca75eae55ad8fbf913a35ac2e417f471f6c4658%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_23.png?alt=media\&token=43ea689a-eb0a-4be7-a1d8-835215a9676d)

2. Click on the test row to open its settings pane.

* Another warning message lists the variables that require configuration to complete test setup.

![Variables list](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-a923ac344b3ffbfc48f9c5d8d0589320edd50754%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_24.png?alt=media\&token=46087766-4576-49a9-aec6-1be97bb33f6c)

3. Click the **1-Step API** button in the **Target API** field.

* This opens a separate dialog where you find further instructions to help you complete configuration.

![API configuration dialog](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-97df377080fc90ba69856feb939dd92d480b851d%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_25.png?alt=media\&token=f130ae3b-6b90-4e6d-bc52-add25a0d15df)

4. Click the Variables button under Environment Setup for a summary of the required variables.

![Variables summary frame](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-a0d4a0559a2ce335d8d2aa8b0918edd07b125d38%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_26.png?alt=media\&token=503e1cdf-e898-4a73-8c72-640d083b7a79)

5. Type the values required into the “TODO” fields.
6. Follow any other on-screen messages until no further warning messages are displayed.
7. Click **Save API Configuration**. This closes the API Configuration dialog.
8. Click **Save and Enable**. This closes the test setting dialog.

* The warning symbol next to Type disappears automatically, the test is no longer grayed out, and the **Enabled** box is checked.
* **Note**: clicking **Save** instead of **Save and Enable** saves your new configurations but does not make the test run.

![Completed configuration screen](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-9d94fc37c394a0396789be1aebfb9c96397abe7f%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_27.png?alt=media\&token=471b125d-74d6-47c5-8a93-f7db6542e13f)

9. Complete these steps for all partially configured tests you wish to run.

## Viewing your Tests

To view and manage the tests that you have just created:

1. Go to **Network & App Synthetics > Test Settings**.
2. Scroll or search for your AWS test and click to open the settings pane.

* The pane opens up to the **Basic Configuration** tab.

![Test settings dialog](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-38a5faee2769c31644b278d49988394774ba8c07%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_28.png?alt=media\&token=477ae1f0-cc49-4869-8737-8b5198d6366b)

3. Edit your test settings using the [Configuring Test Settings](https://docs.thousandeyes.com/product-documentation/getting-started/getting-started-with-cloud-and-enterprise-agent-tests#configuring-test-settings) guide.

## Viewing Your Test Data

Now that you have created the recommended tests, view the test results.

1. Go to **Network & App Synthetics > Views**.

* For information on the elements of the **Views** screen, see [Views](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/viewing-data).

2. In the **Test** dropdown field, find and open your AWS test.

* Your views pane will immediately update to show your AWS test.

![Test view screen](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-a4425b259e66b5a33673ef0bc6794c71529b2930%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_29.png?alt=media\&token=e88606ff-d0e5-4b9d-a2a6-b1295c35f037)

To learn how to view and understand your AWS test data, see [Reading the API Test Views](https://docs.thousandeyes.com/product-documentation/api-test/api-test-type-view).

## Viewing Your API Gateway Dashboard

When you set up your recommended tests - for API Gateway instances only - ThousandEyes automatically creates a dashboard that includes an overview of the health of the AWS APIs you maintain there and the status of the tests you have deployed.

To access your dashboard:

1. On the main menu, go to **Dashboards**.
2. In the dashboard ribbon, open the dropdown within the **Dashboard** button.
3. Scroll or search for the name of the instance test template you just created (tip: they are listed in order of most recently created).
4. Click on your instance test template name.

   ![API dashboard](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-2deb1bab5bab0d67d049dabc3724e9a49a5c92ac%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_30.png?alt=media\&token=57d5d25d-3490-43bd-a37f-4cecfbb2f231)

**Note**: you cannot add a dashboard widget relating to your API tests to another dashboard.

## Viewing Your Alerts and Notifications

When you set up your recommended tests, ThousandEyes automatically assigns alerts to your tests to ensure you are made aware when any of your AWS services underperform.

### How Alerts Are Assigned

Alerts are assigned to your test according to its test type and default status. If the blue check is selected within the **Default** column of the **Alerts** screen, and relate to your test type or nested test type, it will be assigned to your test.

{% hint style="info" %}
While an alert may have “Default” in its title (e.g., the Default SSL Certificate Expiry Rule 2.0 alert in the image below), it is not assigned to the test unless the blue check in the **Default** column is selected.
{% endhint %}

![Alert rules screen with default rule checkboxes](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-f8d4f809b12fd46d72acb4f48d30c38a71c91156%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_31.png?alt=media\&token=0cac6b6c-caaf-44a7-8c8c-8e5a5e840b38)

For example, in the case of an API test type, the test includes the API test type in the Web layer, and nested beneath it the Agent to Server and Path Trace test types in the Network layer, and the BGP test type in the Routing layer. Therefore, any alerts with the default check selected and showing those test types in the **Type** column, will be assigned to your API test.

For more information about test layering, see [Tests](https://docs.thousandeyes.com/product-documentation/tests). For more information about how to view alerts, see [Alerts](https://docs.thousandeyes.com/product-documentation/alerts).

### Viewing Your Assigned Alerts

To see which alerts have been assigned to your tests:

1. Go to **Network & App Synthetics > Test Settings**.
2. Scroll or search for your API test and click to open the settings pane.
3. Scroll to the **Alerts** section.
4. Open the **Alert Rules** field and click **Selected** under the search bar.

![Selected alert rules dropdown](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-747afbe16f9484be1262e928a83aef6df684c802%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_32.png?alt=media\&token=8b978b81-abce-48ce-a87a-7ea225a4488c)

5. View the full list of alerts assigned to your test.

To view any alerts assigned to your tests that may be currently active:

1. Go to **Alerts**.
2. Search by Test Name for your tests.

* Any alerts that are assigned to your tests appear.

![Active API alerts](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-6ef9a76233bbaa0b927b5f4aa5daae977a2a8695%2Fproduct-documentation_integration-guides_custom-built-integrations_aws-api-gateway-for-test-recs_33.png?alt=media\&token=d913432e-42bf-4649-a542-06836d3371ac)

3. Click any alert to open a side panel with more details and links to view the data for each monitored object (e.g. agent or BGP monitor).

### Setting Up Alert Notifications

If your email address is already listed on the **Notifications** tab of the default alerts for tests within your account group, then the alerts assigned to the tests you just created will automatically notify you when your API test alerts fire. If your default alerts also have webhooks or integrations set up for you, then you will also be automatically notified through those other media when your API alerts fire.

If you are not on the email list of notifications for default alerts in your account group, or the person who needs to be notified is not on the email list:

1. Follow the guide to setting up alert notifications on [Creating and Editing Alert Rules](https://docs.thousandeyes.com/product-documentation/alerts/creating-and-editing-alert-rules#notifications-tab).

* You will need to set up a new notification for each alert rule assigned to your new test(s).
  * Remember, you can find the list of alert rules assigned to your new tests in [Viewing Your Assigned Alerts](#viewing-your-assigned-alerts).

2. \[Optional] If you would like to set up reception of notifications by other methods, follow the steps for setting up notifications via [SMS](https://docs.thousandeyes.com/product-documentation/alerts/standard-notification-methods/alert-notifs-via-sms), [custom webhooks](https://docs.thousandeyes.com/product-documentation/integration-guides/custom-webhooks), or our [custom-built integrations](https://docs.thousandeyes.com/product-documentation/integration-guides/custom-built-integrations).
