Capítulo 470 de 988

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 VersionDefault
<5.0.02048MB
>=5.0.010240MB

Key Takeaways

  1. Understand example when working with getFunctions().
  2. Understand argument when working with getFunctions().
  3. Understand region when working with getFunctions().
  4. Understand loglevel?<availablefrom v="4.0.115"/> when working with getFunctions().
  5. 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.