Skip to content

🎥 Make videos programmatically with React

docs: document v5 diskSizeInMb defaults in Lambda function info APIs (#9978)

Santhi Prakashc79c10a71068
diff --git a/packages/docs/docs/lambda/getfunctioninfo.mdx b/packages/docs/docs/lambda/getfunctioninfo.mdx
index 1490ca7e6a..166a58666b 100644
--- a/packages/docs/docs/lambda/getfunctioninfo.mdx
+++ b/packages/docs/docs/lambda/getfunctioninfo.mdx
@@ -23,7 +23,7 @@ const info = await getFunctionInfo({
});
console.log(info.functionName); // remotion-render-d7nd2a9f
console.log(info.memorySizeInMb); // 1500
-console.log(info.diskSizeInMb); // 2048
+console.log(info.diskSizeInMb); // 2048 in Remotion 4.0, or 10240 in Remotion 5.0+
console.log(info.version); // '2021-07-14'
console.log(info.timeoutInSeconds); // 120
```
@@ -55,7 +55,12 @@ The amount of memory allocated to the function.
### `diskSizeInMb`
-The amount of disk space allocated to the function.
+The amount of disk space allocated to the function. See [Disk size](/docs/lambda/disk-size) for defaults when deploying:
+
+| Remotion Version | Default |
+| ---------------- | ------- |
+| <5.0.0 | 2048MB |
+| >=5.0.0 | 10240MB |
### `functionName`
diff --git a/packages/docs/docs/lambda/getfunctions.mdx b/packages/docs/docs/lambda/getfunctions.mdx
index ad565e6fc9..475761a3ad 100644
--- a/packages/docs/docs/lambda/getfunctions.mdx
+++ b/packages/docs/docs/lambda/getfunctions.mdx
@@ -32,7 +32,7 @@ for (const fn of info) {
console.log(fn.functionName); // "remotion-render-d8a03x"
console.log(fn.memorySizeInMb); // 1536
console.log(fn.timeoutInSeconds); // 120
- console.log(fn.diskSizeInMb); // 2048
+ console.log(fn.diskSizeInMb); // 10240 (Remotion >=5.0 default)
console.log(fn.version); // "2021-07-25"
}
```
@@ -71,7 +71,12 @@ The amount of memory allocated to the function.
### `diskSizeInMb`
-The amount of ephemereal disk storage allocated to the function.
+The amount of ephemereal disk storage allocated to the function. See [Disk size](/docs/lambda/disk-size) for defaults when deploying:
+
+| Remotion Version | Default |
+| ---------------- | ------- |
+| <5.0.0 | 2048MB |
+| >=5.0.0 | 10240MB |
### `version`