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 Version | Default |
|---|
| <5.0.0 | 2048MB |
| >=5.0.0 | 10240MB |
Key Takeaways
- Understand example when working with deployFunction().
- Understand arguments when working with deployFunction().
- Understand region when working with deployFunction().
- Understand timeoutinseconds when working with deployFunction().
- 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.