Skip to main content

getRolePolicy()

Returns an inline JSON policy to be assigned to the 'remotion-lambda-role' role that needs to be created in your AWS account.

These permissions will be given to the Lambda function itself.

See Setup tutorial for setting up Lambda from scratch or Role permissions to see a copy of the current policy file with explanations.

Example

import {getRolePolicy} from '@remotion/lambda';

console.log(getRolePolicy()); /* `
{
  "Version": "2012-10-17",
  "Statements": [
    // ...
  ]
}
` */

API

partition?v4.0.510

The AWS partition for which to generate the policy. Accepts "aws" (default) or "aws-cn". See AWS China regions.

See also