π₯ Make videos programmatically with React
lambda FAQ
Jonny Burgerfe7ee0cecc58
diff --git a/packages/docs/docs/lambda-faq.md b/packages/docs/docs/lambda-faq.mdnew file mode 100644index 0000000000..852f85bd69--- /dev/null+++ b/packages/docs/docs/lambda-faq.md@@ -0,0 +1,37 @@+---+sidebar_label: FAQ+title: Lambda - FAQ+slug: /lambda/faq+---++Some commonly asked questions about Remotion Lambda.++### Do I need to deploy a function for each render?++No, you only need to deploy one function and it will be capable of rendering multiple videos, even across different projects.++### Why are you not using Amazon EFS?++We have evaluated Amazon Elastic File System (EFS) and we found the speed benefits of EFS are not substantial enough to warrant the increased complexity - for EFS to be integrated, VPC and security groups need to be created which will disable public internet access. To restore public internet access, a persistent EC2 instance needs to be created for proxying the traffic, negating many benefits of Lambda.++### How much does Remotion Lambda cost?++There are two cost components: The Remotion licensing fee (see [pricing](https://companies.remotion.dev), only applies if you are a company) and the AWS costs. AWS cost is dependant on the amount of memory that you assign to your lambda function. We estimate the Lambda costs for you and report it in the API response.++### How can I upgrade/redeploy a Lambda function?++Remotion will look for a version of the lambda function that matches the Node.JS library / CLI.++If you don't rely on the old function anymore, you can first delete all existing functions:++```bash+npx remotion lambda functions rm $(npx remotion lambda functions ls -q) -y+```++You can deploy a new function using:++```bash+npx remotion lambda functions deploy+```++If you are using the CLI, the following APIs are useful: [`getDeployedLambdas()`](/docs/lambda/getdeployedlambdas), [`deployFunction()`](/docs/lambda/deployfunction) and [`deleteFunction()`](/docs/lambda/deletefunction).diff --git a/packages/docs/docs/lambda-permissions.md b/packages/docs/docs/lambda-permissions.mdindex 3c08212ee9..18344f4702 100644--- a/packages/docs/docs/lambda-permissions.md+++ b/packages/docs/docs/lambda-permissions.md@@ -25,7 +25,7 @@ To assign, go to [AWS console](https://console.aws.amazon.com/console/home) β<RolePolicy />-## Required permissions+## Explanation:::infoCurrently the permissions are too loose. They will be made stricter to only require as minimal access as possible.diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex a9868ef2de..2f981311a4 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -11,6 +11,7 @@ module.exports = {"lambda-permissions","lambda-region-selection","lambda-runtime",+ "lambda-faq",{collapsed: false,type: "category",