Skip to main content

API Gateway REST API

A REST API in API Gateway is a collection of resources and methods that are integrated with backend HTTP endpoints, Lambda functions, or other AWS services. You can use API Gateway features to help you with all aspects of the API lifecycle, from creation through monitoring your production APIs.

API Gateway REST APIs use a request/response model where a client sends a request to a service and the service responds back synchronously. This kind of model is suitable for many different kinds of applications that depend on synchronous communication.

Terraform Mappings:

  • aws_api_gateway_rest_api.id

Supported Methods​

  • GET: Get a REST API by ID
  • LIST: List all REST APIs
  • SEARCH: Search for REST APIs by their name

ec2-vpc-endpoint​

The ec2-vpc-endpoint is related to the REST API as it enables private connectivity between the API Gateway and on-premises networks or other AWS services, removing the need for public internet exposure and thereby reducing risk.

apigateway-resource​

The apigateway-resource is directly part of the REST API structure, defining the resources (or paths) under the API. Each resource can represent an object or collection of objects that can be manipulated through the API, influencing the level of risk in deployment changes if modified incorrectly.