Chapter 469: getFunctionInfo()
Core Idea
Gets information about a function given its name and region.
Key Concepts
- Example
- Arguments
- region
- functionName
- logLevel?<AvailableFrom v="4.0.115"/>
- Return value
- memorySizeInMb
- diskSizeInMb
Code Examples
const info = await getFunctionInfo({
functionName: 'remotion-render-d7nd2a9f',
region: 'eu-central-1',
});
console.log(info.functionName); // remotion-render-d7nd2a9f
console.log(info.memorySizeInMb); // 1500
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
- What it demonstrates: Usage pattern for getFunctionInfo() from the official docs.
Reference Tables
| Remotion Version | Default |
|---|
| <5.0.0 | 2048MB |
| >=5.0.0 | 10240MB |
Key Takeaways
- Understand example when working with getFunctionInfo().
- Understand arguments when working with getFunctionInfo().
- Understand region when working with getFunctionInfo().
- Understand functionname when working with getFunctionInfo().
- Understand loglevel?<availablefrom v="4.0.115"/> when working with getFunctionInfo().
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.