Chapter 470: getFunctions()
Core Idea
Retrieves a list of functions that Remotion deployed to AWS Lambda in a certain region.
Key Concepts
- Example
- Argument
- region
- logLevel?<AvailableFrom v="4.0.115"/>
- compatibleOnly
- Return value
- functionName
- memorySizeInMb
Code Examples
const info = await getFunctions({
region: 'eu-central-1',
compatibleOnly: true,
});
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); // 10240 (Remotion >=5.0 default)
console.log(fn.version); // "2021-07-25"
}
- What it demonstrates: Usage pattern for getFunctions() from the official docs.
Reference Tables
| Remotion Version | Default |
|---|
| <5.0.0 | 2048MB |
| >=5.0.0 | 10240MB |
Key Takeaways
- Understand example when working with getFunctions().
- Understand argument when working with getFunctions().
- Understand region when working with getFunctions().
- Understand loglevel?<availablefrom v="4.0.115"/> when working with getFunctions().
- Understand compatibleonly when working with getFunctions().
Connects To
- api: related page in the Lambda (@remotion/lambda) section.
- Approuterwebhook: related page in the Lambda (@remotion/lambda) section.
- Authentication: related page in the Lambda (@remotion/lambda) section.