Chapter 517: Using Lambda with IAM roles
Core Idea
As documented on the Permissions page, the default way of using Remotion Lambda involves creating a Remotion user and assign it policies.
Key Concepts
- Prerequisites
- Setup
- 1. Create role policy
- 2. Assign the policy to the Lambda execution role
- Render into a different bucket
- Example
- Steps
- See also
Code Examples
const {bucketName, renderId} = await renderMediaOnLambda({
region: 'us-east-1',
functionName: 'remotion-render-bds9aab',
composition: 'MyVideo',
serveUrl: 'https://remotionlambda-qg35eyp1s1.s3.eu-central-1.amazonaws.com/sites/bf2jrbfkw',
codec: 'h264',
outName: {
key: 'my-output',
bucketName: 'output-bucket',
},
});
- What it demonstrates: Usage pattern for Using Lambda with IAM roles from the official docs.
Key Takeaways
- Understand prerequisites when working with Using Lambda with IAM roles.
- Understand setup when working with Using Lambda with IAM roles.
- Understand 1. create role policy when working with Using Lambda with IAM roles.
- Understand 2. assign the policy to the lambda execution role when working with Using Lambda with IAM roles.
- Understand render into a different bucket when working with Using Lambda with IAM roles.
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.