> For the complete documentation index, see [llms.txt](https://docs.duplocloud.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duplocloud.com/docs/automation-platform/overview/aws-services/api-gateway.md).

# API Gateway

Create an AWS API Gateway using a REST API from the DuploCloud Portal

## Creating an AWS API Gateway REST API

To create an AWS API Gateway using a REST API from the DuploCloud Portal, navigate to **Cloud Services** -> **Networking**, and click **Add** on the **Api Gateway** tab. The REST API generates security policies that make the API Gateway accessible to other resources (like Lambda functions) within the Tenant. After the REST API has been created in the DuploCloud Portal, all other configurations (e.g., defining methods and resources or pointing to lambda functions) should be done in the AWS Console. The console can be reached from the DuploCloud Portal by navigating to **Cloud Services** -> **Networking**, selecting the **Api Gateway** tab, and clicking the **Console** button under the **Actions** menu.

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F81XS28gvt3ASrVYXajqr%2Fscreenshot-nimbusweb.me-2024.02.19-16_27_56.png?alt=media&amp;token=827d3517-8791-4bf1-9cd1-24cf3798d971" alt=""><figcaption><p>The <strong>Create an API Gateway pane</strong> showing integration of API Gateway and a lambda function</p></figcaption></figure>

## Enable local-development access to private AWS API Gateway instances

Make private AWS API Gateway instances (associated with VPC endpoints) accessible from your machines by constructing a URL, as shown below. Replace ***REST\_API\_ID*** with your API Gateway instance's unique identifier (API ID), ***VPCE\_ID*** with your VPC Endpoint ID (VPCE ID), ***REGION*** with the specified AWS region, and STAGE with the development stage (e.g., `prod`, `dev`, `test`).

\
`https://{`***`REST_API_ID`***`}-{`***`VPCE_ID`***`}.execute-api.{`***`REGION`***`}.amazonaws.com/{`***`STAGE`***`}`<br>

The resulting URL will point to the specific API Gateway instance associated with the API ID and VPC Endpoint ID in the specified AWS region and stage. With this URL, you can make requests over the default open VPN to the private API Gateway.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview/aws-services/api-gateway.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
