CURATED TEMPLATE / AWS

You need a public API endpoint without first designing an entire backend platform.

HTTP API to Lambda with Terraform

View original source

When this becomes useful

A user action or integration needs a reliable way into your product. A small endpoint pattern is useful when it makes request handling, authorization and deployment easy to inspect.

What the template offers

HTTP API to Lambda with Terraform is a Terraform pattern from AWS Serverless Patterns. It offers a concrete implementation to inspect and adapt. A narrow starting point for a public HTTP endpoint. Review authorization, request validation and deployment stages before using it for customer traffic.

Technical shape

Inspect the Terraform resources that connect API Gateway HTTP API to Lambda, including routes, invocation permissions and deployment outputs.

Questions worth answering

  • Who can call this endpoint?
  • How are requests validated?
  • How will errors and retries appear to users?

Inspect the source

Read the maintainer's README, license, setup instructions and current repository state before adapting the code.

Open AWS Serverless Patterns

Capabilities to plan next

A deployable pattern is one piece of the product. These guides cover behavior and decisions around it.