# Run Node-Red as AWS Lambda Function

**URL:** https://discourse.nodered.org/t/run-node-red-as-aws-lambda-function/36379
**Category:** General
**Created:** [23 November 2020 08:15 UTC](https://discourse.nodered.org/t/run-node-red-as-aws-lambda-function/36379 "2020-11-23T08:15:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anguslou](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/anguslou/32/9212_2.png) [@anguslou](https://discourse.nodered.org/u/anguslou)
#### Post date: [23 November 2020 08:15 UTC](https://discourse.nodered.org/t/run-node-red-as-aws-lambda-function/36379/1 "2020-11-23T08:15:39Z")

</div>

Does anyone have an idea how to run Node-Red as AWS Lambda? Currently, I am running Node-Red on EC2 and using other AWS services such as DynamoDB and S3, thinking Lambda will be more flexible rather than EC2.

Understand startup time for Lambda will be longer but a workaround is triggering Lambda every a few hours/ minutes to keep it active.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [23 November 2020 08:18 UTC](https://discourse.nodered.org/t/run-node-red-as-aws-lambda-function/36379/2 "2020-11-23T08:18:36Z")

</div>

I thought the whole point of lambdas was to NOT keep them running. You pay for when they run.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [22 January 2021 08:18 UTC](https://discourse.nodered.org/t/run-node-red-as-aws-lambda-function/36379/3 "2021-01-22T08:18:39Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
