Skip to content

feat: API Gateway emulator HTTP proxy so non-Lambda backends share the emulator origin - #2569

Open
msmourao wants to merge 1 commit into
aws:masterfrom
msmourao:feature/api-gateway-emulator-http-integration
Open

feat: API Gateway emulator HTTP proxy so non-Lambda backends share the emulator origin#2569
msmourao wants to merge 1 commit into
aws:masterfrom
msmourao:feature/api-gateway-emulator-http-integration

Conversation

@msmourao

Copy link
Copy Markdown

Issue #, if available:
Closes #2568

Description of changes:
Adds an optional HTTP proxy integration to the Lambda Test Tool v2 API Gateway emulator so non-Lambda HTTP backends can share the same emulator origin as Lambda routes.

Behavior

  • ApiGatewayRouteConfig.IntegrationType:
    • Lambda / omitted (default) — existing event translation → Runtime API
    • Http — reverse-proxy the incoming HTTP request to Endpoint (no API Gateway JSON event wrapping)
  • Validates that Http routes have a non-empty absolute http(s) Endpoint
  • Registers IHttpClientFactory for the proxy path

Why

API Gateway supports HTTP integrations, not only Lambda. Local mixed topologies (Kestrel / containers / App Runner behind the same gateway URL the frontend already uses) need the emulator to represent that.

Tests

Unit tests for accepting valid Http configs and rejecting missing/invalid endpoints.

Out of scope

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…ends

Add optional IntegrationType=Http so emulator routes can reverse-proxy to an HTTP Endpoint instead of invoking Lambda, keeping a single emulator origin for mixed local topologies.

Closes aws#2568

Co-authored-by: Cursor <cursoragent@cursor.com>
@msmourao
msmourao requested review from a team as code owners September 10, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Gateway emulator: HTTP proxy integration so non-Lambda backends share the emulator origin

1 participant