🎥 Make videos programmatically with React
improve setup documentation
Jonny Burger30c7e59f7881
diff --git a/packages/docs/docs/lambda-setup.md b/packages/docs/docs/lambda-setup.mdindex 6e11d01a36..b770558b2c 100644--- a/packages/docs/docs/lambda-setup.md+++ b/packages/docs/docs/lambda-setup.md@@ -318,3 +318,10 @@ This code will poll every second to check the progress of the video and exit the</TabItem></Tabs>++## Next steps++- Select [which region(s)](/docs/lambda/region-selection) you want to run Remotion Lambda in.+- Familiarize yourself with the CLI and the Node.JS APIs (list in sidebar).+- Before going live, go through the [Production checklist](/docs/lambda/checklist).+- If you have any questions, go through the [FAQ](/docs/lambda/faq) or ask in our [Discord channel](https://discord.gg/PzjkKS8S5S))diff --git a/packages/docs/docs/lambda.md b/packages/docs/docs/lambda.mdindex 3e2c7ee35f..f258e04d4a 100644--- a/packages/docs/docs/lambda.md+++ b/packages/docs/docs/lambda.md@@ -4,6 +4,8 @@ sidebar_label: Overviewtitle: "@remotion/lambda"---+Render Remotion videos on [AWS Lambda](https://aws.amazon.com/lambda/). This is the fastest, most cost-efficient and most scalable way to render Remotion videos.+import {LambdaRegionList} from '../components/lambda/regions.tsx';:::warning@@ -12,9 +14,17 @@ import {LambdaRegionList} from '../components/lambda/regions.tsx';**No release timeline**: The project is in active development but will not be rushed to a release but instead we want to ensure it's futureproof.:::+## When should I use it?++- Your videos are less than 8 minutes long. <sub>(AWS Lambda storage constraint)</sub>+- You are rendering less than 1 hour of video per minute. <sub>(AWS Lambda Burst Limit / Concurrency constraint)</sub>+- You are fine with using Amazon Web Services in one of the [supported regions](/docs/lambda/region-selection).++If one of those those constraints are a dealbreaker for you, resort to normal [server-side rendering](/docs/ssr).+## How it works-- A lambda function and a S3 bucket is created on AWS.+- A Lambda function and a S3 bucket is created on AWS.- A Remotion project gets deployed to a S3 bucket as a website.- The lambda function can invoke a render.- A lot of lambda functions are created in parallel which each render a small part of the video@@ -34,14 +44,12 @@ import {LambdaRegionList} from '../components/lambda/regions.tsx';## Region selection-Starting from release `2.2.0-alpha.6c60bafb`, you can select an AWS region (previously `eu-central-1` was hardcoded) using the `AWS_REGION` environment variable. The default value is `us-east-1`.--In this release, a new `s3:GetBucketRegion` permission is needed, so you need to do [update the permissions](/docs/lambda/setup).-The following regions are available for Remotion Lambda:<LambdaRegionList />+[**See here for configurations and considerations.**](/docs/lambda/region-selection)+## Limitations- You only have 512MB of storage available in lambda function. This must be sufficient for both the chunks and the output, therefore the output file can only be about ~250MB maximum.@@ -49,19 +57,25 @@ The following regions are available for Remotion Lambda:## Cost-Will be estimated automatically and added to the progress response. Currently not very accurate/sophisticated.+Most of our users render multiple minutes of video for just a few pennies. The exact cost is dependent on the region, type of video, parallelization and other parameters. For each render, we estimate a cost and display it to you. You might also need a Remotion license (see below).## Chunk optimizationA mechanism that determines after a render which frames rendered the slowest optimizes the batching sizes for the next render. This can optimize subsequent render times by up to 50%.+[**Read more about chunk optimization**](/docs/lambda/chunk-optimization)+## AWS permissions-[**See here**](/docs/lambda/permissions)+Remotion Lambda requires you to create an AWS account and create a user with some permissions attached to it. We require only the minimal amount of permissions required for operating Remotion Lambda.++[**Read more about permissions**](/docs/lambda/permissions)## CLI-[**See here**](/docs/lambda/cli)+You can control Remotion Lambda using the `npx remotion lambda` command.++[**Read more about the CLI**](/docs/lambda/cli)## Node.JS API