npx remotion lambda functions deploy
npx remotion lambda functions deployCreates a new function in your AWS account. If a function in the same region, with the same name, Remotion version, memory, disk space and timeout already exists, its name will be returned instead.
By default, a CloudWatch Log Group will be created that will log debug information to CloudWatch that you can consult in the case something is going wrong. The default retention period for these logs is 14 days, which can be changed.
Example output
Region = eu-central-1, Memory = 2048MB, Disk = 2048MB, Timeout = 120sec, Version = 2021-12-17, CloudWatch Enabled = true, CloudWatch Retention Period = 14 days VPC Subnet IDs = subnet-0f6a0f6a0f6a0f6a0, subnet-0f6a0f6a0f6a0f6a1 VPC Security Group IDs = sg-0f6a0f6a0f6a0f6a0, sg-0f6a0f6a0f6a0f6a1
Deployed as remotion-render-2021-12-17-2048mb-120sec
--region
The AWS region in which to run the command.
See how Remotion selects an AWS region.
--function-namev4.0.540
The name of the Lambda function to invoke or deploy.
Remotion generates the default function name. The name must contain 1–64 letters, digits, hyphens or underscores. An existing function with this name must have the same Remotion version, memory size, disk size and timeout. Deployment fails if any of these differ.
Select the function explicitly when rendering. Names outside the remotion-render- prefix also require updated IAM permissions. See Custom Lambda function names.
--memory
The amount of memory to allocate to the Lambda function, in megabytes.
Defaults to 2048 MB.
--disk
The amount of ephemeral storage to allocate to the Lambda function, in megabytes.
See Lambda disk size.
| Remotion Version | Default |
|---|---|
| <5.0.0 | 2048MB |
| >=5.0.0 | 10240MB |
--timeout
The maximum execution time of the deployed Lambda function, in seconds.
Defaults to 120 seconds.
Not to be confused with the --timeout flag for npx remotion lambda render which defines the timeout for delayRender().
--disable-cloudwatch
Skip creation of the CloudWatch log group when deploying the Lambda function.
--retention-period
Number of days to retain logs in the CloudWatch log group of the Lambda function.
Defaults to 14 days.
--enable-lambda-insightsv4.0.61
Enable Lambda Insights in AWS CloudWatch. For this to work, you may have to update your role permission.
--custom-role-arn
The ARN of the IAM execution role for the Lambda function.
The default role ARN is arn:aws:iam::[aws-account-id]:role/remotion-lambda-role.
--custom-layer-arnsv4.0.510
A comma-separated list of Lambda layer version ARNs to use when deploying the function.
Pass complete Layer version ARNs separated by commas. These layers replace all Remotion-hosted runtime layers.
See Custom Layers. This flag is required in AWS China regions.
--quiet, -q
Only logs the function name.
--vpc-subnet-idsv4.0.160
A comma-separated list of VPC subnet IDs for the Lambda function.
--vpc-security-group-idsv4.0.160
A comma-separated list of VPC security group IDs for the Lambda function.
--runtime-preferencev4.0.205
Choose the bundled font and emoji runtime. Accepted values are default, apple-emojis, and cjk.
default: Currently resolving tocjkapple-emojis: Use Apple Emojis instead of Google Emojis. CJK characters will be removed.cjk: Include CJK (Chinese, Japanese, Korean) characters and Google Emojis. Apple Emojis will be removed.
Apple Emojis are intellectual property of Apple Inc.
You are responsible for the use of Apple Emojis in your project.