Skip to content

πŸŽ₯ Make videos programmatically with React

docs updates

Jonny Burger05a5c3b2cc77
diff --git a/packages/docs/docs/lambda/cli/still.md b/packages/docs/docs/lambda/cli/still.md
index 535d70da33..c6e8b7e5e1 100644
--- a/packages/docs/docs/lambda/cli/still.md
+++ b/packages/docs/docs/lambda/cli/still.md
@@ -25,7 +25,7 @@ Rendering a still:
npx remotion lambda still https://remotionlambda-abcdef.s3.eu-central-1.amazonaws.com/sites/testbed/index.html my-comp
```
-Rendering using the serve URL shorthand :
+Rendering using the serve URL shorthand:
```
npx remotion lambda still testbed my-comp
diff --git a/packages/docs/docs/lambda/concurrency.md b/packages/docs/docs/lambda/concurrency.md
index 932b08cf6b..610fac256f 100644
--- a/packages/docs/docs/lambda/concurrency.md
+++ b/packages/docs/docs/lambda/concurrency.md
@@ -17,7 +17,7 @@ Example: You render a video that has a `durationInFrames` of `300` with a `frame
## Default values
-By default, Remotion chooses a value between 20 and 120 for `framesPerLambda`. The longer the video, the higher the concurrency. As a baseline, no matter how short the video, always at least 20 frames are rendered per Lambda.
+By default, Remotion chooses a value between 20 and ∞ for `framesPerLambda`. The longer the video, the higher the concurrency. As a baseline, no matter how short the video, always at least 20 frames are rendered per Lambda.
The following chart shows how the `framesPerLambda` and the implied concurrency is chosen based on the frame count:
diff --git a/packages/docs/docs/lambda/deployfunction.md b/packages/docs/docs/lambda/deployfunction.md
index cd25097aa9..1c583778a1 100644
--- a/packages/docs/docs/lambda/deployfunction.md
+++ b/packages/docs/docs/lambda/deployfunction.md
@@ -42,23 +42,31 @@ We recommend a timeout of 120 seconds or lower - remember, Remotion Lambda is th
### `memorySizeInMb`
-How many megabytes of RAM the Lambda function should have. By default we recommend a value of 1024MB. You may increase or decrease it depending on how memory-consuming your video is. The minimum allowed number is `512`, the maximum allowed number is `10240`. Since the costs of Remotion Lambda is directly proportional to the amount of RAM, we recommend to keep this amount as low as possible.
+How many megabytes of RAM the Lambda function should have. By default we recommend a value of 2048MB. You may increase or decrease it depending on how memory-consuming your video is. The minimum allowed number is `512`, the maximum allowed number is `10240`. Since the costs of Remotion Lambda is directly proportional to the amount of RAM, we recommend to keep this amount as low as possible.
### `architecture`
-Either `x86_64` or `arm64`.
+_string_
+
+Either `x86_64` or `arm64`. Default: `arm64`
### `createCloudWatchLogGroup`
+_boolean_
+
Whether logs should be saved into CloudWatch. We recommend enabling this option.
### `cloudWatchLogRetentionPeriodInDays`
-Optional. Retention period for the CloudWatch Logs. Default: 14 days.
+_optional_
+
+Retention period for the CloudWatch Logs. Default: 14 days.
### `diskSizeInMb`
-Optional. Sets the amount of disk storage that is available in the Lambda function. Must be between 512MB and 10240MB (10GB). Set this higher if you want to render longer videos. See also: [Disk size](/docs/lambda/disk-size)
+_optional_
+
+Sets the amount of disk storage that is available in the Lambda function. Must be between 512MB and 10240MB (10GB). Set this higher if you want to render longer videos. See also: [Disk size](/docs/lambda/disk-size)
## Return value
diff --git a/packages/docs/docs/lambda/getawsclient.md b/packages/docs/docs/lambda/getawsclient.md
index 8f100b5960..83008e8612 100644
--- a/packages/docs/docs/lambda/getawsclient.md
+++ b/packages/docs/docs/lambda/getawsclient.md
@@ -49,7 +49,7 @@ One of the [supported regions](/docs/lambda/region-selection) of Remotion Lambda
### `service`
-One of `lambda`, `cloudwatch`, `iam` and `s3`.
+One of `lambda`, `cloudwatch`, `iam`, `servicequotas` and `s3`.
## Return value
@@ -62,6 +62,7 @@ An AWS SDK client instantiated with the region you passed and the credentials yo
- For `s3`: An instance of [S3Client](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-s3/classes/s3client.html)
- For `iam`: An instance of [IAMClient](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iam/classes/iamclient.html)
- For `cloudwatch`: An instance of [CloudWatchLogsClient](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudwatch-logs/classes/cloudwatchlogsclient.html)
+- For `servicequotas`: An instance of [ServiceQuotasClient](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-service-quotas/classes/servicequotasclient.html)
- For `lambda`: An instance of [LambdaClient](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lambda/classes/lambdaclient.html)
### sdk
@@ -71,6 +72,7 @@ The full SDK JavaScript module for the service you specified.
- For `s3`: The [`@aws-sdk/client-s3`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-s3/index.html#aws-sdkclient-s3) package
- For `iam`: The [`@aws-sdk/client-iam`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iam/index.html#aws-sdkclient-iam) package
- For `cloudwatch`: The [`@aws-sdk/client-cloudwatch-logs`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudwatch-logs/index.html#aws-sdkclient-cloudwatch-logs) package
+- For `servicequotas`: The [`@aws-sdk/client-service-quotas`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-service-quotas/index.html) package
- For `lambda`: The [`@aws-sdk/client-lambda`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lambda/index.html#aws-sdkclient-lambda) package
:::note
diff --git a/packages/docs/docs/lambda/getfunctioninfo.md b/packages/docs/docs/lambda/getfunctioninfo.md
index 6018d12107..88ac6538c0 100644
--- a/packages/docs/docs/lambda/getfunctioninfo.md
+++ b/packages/docs/docs/lambda/getfunctioninfo.md
@@ -16,16 +16,17 @@ To deploy a function, use [`deployFunction()`](/docs/lambda/deployfunction).
// @module: esnext
// @target: es2017
-import {getFunctionInfo} from '@remotion/lambda';
+import { getFunctionInfo } from "@remotion/lambda";
const info = await getFunctionInfo({
- functionName: 'remotion-render-d7nd2a9f',
- region: 'eu-central-1'
+ functionName: "remotion-render-d7nd2a9f",
+ region: "eu-central-1",
});
-console.log(info.functionName) // remotion-render-d7nd2a9f
-console.log(info.memorySizeInMb) // 1500
-console.log(info.version) // '2021-07-14'
-console.log(info.timeoutInSeconds) // 120
+console.log(info.functionName); // remotion-render-d7nd2a9f
+console.log(info.memorySizeInMb); // 1500
+console.log(info.diskSizeInMb); // 512
+console.log(info.version); // '2021-07-14'
+console.log(info.timeoutInSeconds); // 120
```
## Arguments
@@ -48,6 +49,10 @@ A promise resolving to an object with the following properties:
The amount of memory allocated to the function.
+### `diskSizeInMb`
+
+The amount of disk space allocated to the function.
+
### `functionName`
The name of the function.
diff --git a/packages/docs/docs/lambda/getfunctions.md b/packages/docs/docs/lambda/getfunctions.md
index 50405bce1d..2555902e27 100644
--- a/packages/docs/docs/lambda/getfunctions.md
+++ b/packages/docs/docs/lambda/getfunctions.md
@@ -58,7 +58,7 @@ The amount of memory allocated to the function.
### `diskSizeInMb`
-The amount of ephemereal storage allocated to the function.
+The amount of ephemereal disk storage allocated to the function.
### `functionName`
diff --git a/packages/docs/docs/lambda/getregions.md b/packages/docs/docs/lambda/getregions.md
index 611c4b6664..14df8ad3ef 100644
--- a/packages/docs/docs/lambda/getregions.md
+++ b/packages/docs/docs/lambda/getregions.md
@@ -14,7 +14,7 @@ import { getRegions } from "@remotion/lambda";
// ---cut---
-const regions = await getRegions();
+const regions = getRegions();
// ["eu-central-1", "us-east-1"]
```
diff --git a/packages/docs/docs/lambda/region-selection.md b/packages/docs/docs/lambda/region-selection.md
index 167f1b17e2..f48e8a8f5c 100644
--- a/packages/docs/docs/lambda/region-selection.md
+++ b/packages/docs/docs/lambda/region-selection.md
@@ -46,7 +46,7 @@ Note that different regions have a different limit on how many Lambda functions
- `ap-northeast-1`, `eu-central-1`, `us-east-2`: Burst concurrency = 1000
- All other regions = 500
-**Because of this, we recommend hosting your infrastructure in `us-east-1`, `us-west-2` or `eu-west-1` for maximum scalability.**
+**Because of this, we recommend hosting your primary infrastructure in `us-east-1`, `us-west-2` or `eu-west-1` for maximum scalability.**
## Other considerations
diff --git a/packages/docs/docs/lambda/renderstillonlambda.md b/packages/docs/docs/lambda/renderstillonlambda.md
index 4143935ad4..9b0c2a3cf3 100644
--- a/packages/docs/docs/lambda/renderstillonlambda.md
+++ b/packages/docs/docs/lambda/renderstillonlambda.md
@@ -112,14 +112,10 @@ It can either be:
### `timeoutInMilliseconds?`
-_optional, available from v2.6.2_
-
A number describing how long the render may take to resolve all `delayRender()` calls before it times out. Default: `30000`
### `chromiumOptions?`
-_optional, available from v2.6.5_
-
Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](/docs/chromium-flags).
#### `disableWebSecurity`