Functions

Convert AWS Lambda source

Convert AWS Lambda handler code to a Raff function. Stateless — nothing is stored; review the output, then create a function and deploy the returned files.

Two modes:

  • rewrite (default) — AI rewrites the handler to a portable standard handler (FastAPI / Web Fetch / net/http). Every guess is flagged in warnings. 5 free per calendar month, then $0.30 per conversion from your balance. Up to 64KB of source.
  • adapter — your code ships unchanged plus a small static shim that presents API-Gateway-style events. Instant, free, unlimited.

Config always maps deterministically: memory/timeout, env vars to raff_toml, EventBridge rate() schedules to cron trigger proposals. IAM, VPC, layers and stream sources are listed in out_of_scope with alternatives.

post/api/v1/functions/import/lambda

Request body

lambda_runtimestring required

AWS runtime id, e.g. python3.12, nodejs20.x, go1.x

handlerstring

Lambda handler, e.g. lambda_function.handler

memory_mbinteger
timeout_secondsinteger
env_varsobject
trigger_config_jsonstring

Optional EventBridge/S3/FunctionURL config to map

mode'rewrite' | 'adapter'

rewrite = AI portable-handler rewrite; adapter = run unchanged via a static shim (free)

Response

Conversion result (review before deploying)

successboolean

Changes