/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-access-aws-lambda-o-84854b1baa8e-access-aws-lambda-object-s0425-c0000.md
Access AWS Lambda Object - hono-docs
Access AWS Lambda Object Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt access aws lambda object...
Access AWS Lambda Object
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#access-aws-lambda-object
Summary
In Hono, you can access the AWS Lambda Events and Context by binding the LambdaEvent, LambdaContext type and using c.env ```ts import { Hono } from 'hono' import type { LambdaEvent, LambdaContext } from 'hono/aws-lambda' import { h...
Content
In Hono, you can access the AWS Lambda Events and Context by binding the LambdaEvent, LambdaContext type and using c.env
import { Hono } from 'hono'
import type { LambdaEvent, LambdaContext } from 'hono/aws-lambda'
import { handle } from 'hono/aws-lambda'
type Bindings = {
event: LambdaEvent
lambdaContext: LambdaContext
}
const app = new Hono<{ Bindings: Bindings }>()
app.get('/aws-lambda-info/', (c) => {
return c.json({
isBase64Encoded: c.env.event.isBase64Encoded,
awsRequestId: c.env.lambdaContext.awsRequestId,
})
})
export const handler = handle(app)