Capítulo 454 de 988

Chapter 454: deployFunction()

Core Idea

Creates an AWS Lambda function in your AWS account that will be able to render a video in the cloud.

Key Concepts

  • Example
  • Arguments
  • region
  • timeoutInSeconds
  • memorySizeInMb
  • createCloudWatchLogGroup?
  • cloudWatchLogRetentionPeriodInDays?
  • diskSizeInMb?

Code Examples

const {functionName} = await deployFunction({
  region: 'us-east-1',
  timeoutInSeconds: 120,
  memorySizeInMb: 2048,
  createCloudWatchLogGroup: true,
  diskSizeInMb: 2048,
});
console.log(functionName);
  • What it demonstrates: Usage pattern for deployFunction() from the official docs.

Reference Tables

Remotion VersionDefault
<5.0.02048MB
>=5.0.010240MB

Key Takeaways

  1. Understand example when working with deployFunction().
  2. Understand arguments when working with deployFunction().
  3. Understand region when working with deployFunction().
  4. Understand timeoutinseconds when working with deployFunction().
  5. Understand memorysizeinmb when working with deployFunction().

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.