responder icon indicating copy to clipboard operation
responder copied to clipboard

Any way to deploy responder app as an AWS Lambda Function?

Open abhaybhargav opened this issue 5 years ago • 2 comments

Wondering if anyone has tried to run a Responder App as a FaaS AWS Lambda Function. Any known approach or experiments?

abhaybhargav avatar Jan 26 '19 22:01 abhaybhargav

Take a look at https://github.com/erm/mangum

tomchristie avatar Jan 26 '19 22:01 tomchristie

The middleware in Mangum should work with Responder, but the API class creates directories/files by default here, this will raise a Read-only file system error in AWS Lambda.

Not sure if there is anything on the AWS end to workaround this, but it may only be possible if the templates/staticfiles in Responder are made more configurable - though I don't know how trivial or complex that may be depending on how integrated those definitions are throughout the rest of the API.

Looks like https://github.com/kennethreitz/responder/issues/278 would be related here.

jordaneremieff avatar Jan 27 '19 12:01 jordaneremieff