Skip to content

🎥 Make videos programmatically with React

added checklist

Jonny Burger223612868dce
diff --git a/packages/docs/docs/lambda-changelog.md b/packages/docs/docs/lambda-changelog.md
index fe014fe1f1..0b3a98dde8 100644
--- a/packages/docs/docs/lambda-changelog.md
+++ b/packages/docs/docs/lambda-changelog.md
@@ -22,6 +22,9 @@ Keep track of changes to the APIs of Remotion Lambda here.
- `downloadVideo()` return value property renamed from `size` to `sizeInBytes`
- Command `npx remotion lambda sites ls` now supports `-q` flag
- `getSites()` command now returns a `serveUrl` for each site
+- Deleted the `cleanup` command
+- Added [/docs/lambda/production-checklist](Production checklist entry)
+- Added [/docs/lambda/uninstall](Uninstall guide)
## October 29th, 2021
diff --git a/packages/docs/docs/lambda-downloadvideo.md b/packages/docs/docs/lambda-downloadvideo.md
index ca892cba67..87f1387fe8 100644
--- a/packages/docs/docs/lambda-downloadvideo.md
+++ b/packages/docs/docs/lambda-downloadvideo.md
@@ -11,7 +11,7 @@ Downloads a rendered video to your local disk.
// @target: ESNext
import { downloadVideo } from "@remotion/lambda";
-const { outputPath, size } = await downloadVideo({
+const { outputPath, sizeInBytes } = await downloadVideo({
bucketName: "remotionlambda-r42fs9fk",
region: "us-east-1",
renderId: "8hfxlw",
@@ -19,7 +19,7 @@ const { outputPath, size } = await downloadVideo({
});
console.log(outputPath); // "/Users/yourname/remotion-project/out.mp4"
-console.log(size); // 21249541
+console.log(sizeInBytes); // 21249541
```
## Arguments
diff --git a/packages/docs/docs/lambda-productionchecklist.md b/packages/docs/docs/lambda-productionchecklist.md
new file mode 100644
index 0000000000..b5069b472c
--- /dev/null
+++ b/packages/docs/docs/lambda-productionchecklist.md
@@ -0,0 +1,48 @@
+---
+id: lambda-checklist
+sidebar_label: Production Checklist
+title: Production Checklist
+slug: /lambda/checklist
+---
+
+import {DefaultTimeout} from '../components/lambda/default-timeout';
+
+You have implemented your solution with Remotion Lambda are are ready to launch your project into the world. Congrats!
+Before you go live, go through this checklist to make sure Lambda is running stable.
+
+:::warning
+We think Lambda is stable enough to ship to production, but remember that Lambda is still in beta and that APIs may change.
+:::
+
+### Optimizing for memory
+
+Adding too much memory to your Lambda functions can make rendering more costly. Reducing the memory of your function by 25% will also decrease your cost by 25%! Redeploy your function multiple times and lower the memory size as much as possible until you feel you hit the sweet spot between low costs and confidence that your video will render reliably.
+
+### Maximum file size
+
+Lambda is constrained to a maximum output file size of approximately 250MB. Test the file sizes of your outputs and make sure they don't run at risk of exceeding the limit.
+If your video is based on user input, prevent your users from rendering very long videos that would exceed the space available in Remotion Lambda.
+
+### Permissions
+
+Make sure your AWS permissions only have as many permissions as needed and store your credentials as environment variables. Review the [Permissions](/docs/lambda/permissions) page to see what the minimum amount of permissions is.
+
+### AWS burst limit
+
+Familiarize yourself with the [AWS burst limit](https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html). Essentially, you need to avoid a quick spike in video renders that will cause the burst limit to take effect. If you need to scale beyond the burst limit, consider scaling across multiple regions as the burst limit only applies for a certain region. Another strategy to consider is creating multiple sub-accounts in your AWS organization as the burst limit only affects a single account.
+
+### Bucket privacy
+
+By default the rendered videos are publicly accessible in your bucket. Use the `privacy` setting in [`renderVideoOnLambda()`](/docs/lambda/rendervideoonlambda) to make renders private if you'd like so.
+
+### Rate limiting
+
+Consider if it's possible for a user to invoke many video renders that will end up on your AWS bill, and implement a rate limiter to prevent a malicious actor from rendering many videos.
+
+### Timeout
+
+The default timeout for your Lambda function is <DefaultTimeout /> seconds which should be plenty, given that the video rendering is massively parallelized. But also here, measure and adjust the timeout for your needs and make sure it is high enough so that your video render will not fail.
+
+### Valid Company license
+
+Companies with more than 3 people need to buy cloud rendering seats in order to use Remotion Lambda. Please familiarize yourself with the [license](https://github.com/remotion-dev/remotion/blob/main/LICENSE.md) and [buy the necessary cloud seats](https://companies.remotion.dev/) before launching.
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 346c1b18b6..e726990526 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -36,6 +36,7 @@ module.exports = {
"simulatepermissions",
],
},
+ "lambda-checklist",
"lambda-changelog",
"lambda-uninstall",
],