/Knowledge/sources/honojs__hono/llms-full/aws-lambda-access-requestcontext-before-v3-10-0-deprecated--a8c5d2f12bb1.md
AWS Lambda: Access RequestContext > Before v3.10.0 (deprecated) - hon...
AWS Lambda: Access RequestContext Before v3.10.0 (deprecated) Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms f...
AWS Lambda: Access RequestContext > Before v3.10.0 (deprecated)
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#before-v3-10-0-deprecated
Summary
you can access the AWS Lambda request context by binding the ApiGatewayRequestContext type and using c.env. ```ts import { Hono } from 'hono' import type { ApiGatewayRequestContext } from 'hono/aws-lambda' import { handle } from 'hon...
Content
you can access the AWS Lambda request context by binding the ApiGatewayRequestContext type and using c.env.
import { Hono } from 'hono'
import type { ApiGatewayRequestContext } from 'hono/aws-lambda'
import { handle } from 'hono/aws-lambda'
type Bindings = {
requestContext: ApiGatewayRequestContext
}
const app = new Hono<{ Bindings: Bindings }>()
app.get('/custom-context/', (c) => {
const lambdaContext = c.env.requestContext
return c.json(lambdaContext)
})
export const handler = handle(app)
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#before-v3-10-0-deprecated",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / AWS Lambda > Access RequestContext > Before v3.10.0 (deprecated)",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 427,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "AWS Lambda: Access RequestContext > Before v3.10.0 (deprecated)",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}