lambda-api-hosting

Configure .NET 10 Lambda APIs behind AWS API Gateway with path prefixes and stages.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/diegoknsk/video-processing-engine-video-management-lambda --skill lambda-api-hosting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lambda-api-hosting
Source: https://github.com/diegoknsk/video-processing-engine-video-management-lambda/tree/main/.cursor/skills/lambda-api-hosting
Command: npx skills add https://github.com/diegoknsk/video-processing-engine-video-management-lambda --skill lambda-api-hosting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps engineers configure a .NET 10 Lambda API to run behind AWS API Gateway using AddAWSLambdaHosting, including handling optional path prefixes (GATEWAY_PATH_PREFIX) and stages (GATEWAY_STAGE) and integrating OpenAPI documentation.

Core Features & Use Cases

  • Create a Lambda-hosted API using AddAWSLambdaHosting.
  • Route through API Gateway HTTP API (v2) with optional GATEWAY_PATH_PREFIX and GATEWAY_STAGE.
  • Integrate OpenAPI (Scalar or Swagger) servers so clients can discover and try endpoints behind the gateway.

Quick Start

Configure a .NET 10 Lambda API to expose endpoints behind API Gateway with an optional path prefix and stage, and enable OpenAPI documentation.

Frequently Asked Questions about lambda-api-hosting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I host a .NET 10 Lambda API behind AWS API Gateway with a path prefix?

To host a .NET 10 Lambda API behind AWS API Gateway, use AddAWSLambdaHosting and configure environment variables GATEWAY_PATH_PREFIX and GATEWAY_STAGE to handle gateway routing and named stages properly.

How does AddAWSLambdaHosting handle API Gateway HTTP API v2 stages?

AddAWSLambdaHosting processes API Gateway HTTP API v2 requests by reading the GATEWAY_STAGE environment variable to correctly route traffic to named deployment stages without manual path stripping.

Can I expose OpenAPI documentation for a .NET Lambda API using Scalar or Swagger?

Yes, you can integrate OpenAPI documentation using Scalar or Swagger by configuring the server URLs to reflect the API Gateway path prefix so clients can discover and test endpoints correctly.

Does API Gateway HTTP API v2 support custom gateway path prefixes for Lambda APIs?

API Gateway HTTP API v2 supports custom path prefixes for Lambda APIs when you apply the GATEWAY_PATH_PREFIX environment variable within your .NET 10 hosting configuration.

Why are my OpenAPI server URLs incorrect when testing a Lambda API through API Gateway?

OpenAPI server URLs are often incorrect if the GATEWAY_PATH_PREFIX is not applied to the server configuration, causing the documentation to point to invalid endpoints behind the API Gateway.

Do I need .NET 10 to use AddAWSLambdaHosting for API Gateway integration?

Yes, this specific configuration for exposing APIs behind API Gateway with proper path prefix and stage handling requires .NET 10 to utilize the AddAWSLambdaHosting feature effectively.