Skip to main content

getUserPolicy()

Returns an inline JSON policy to be assigned to the AWS user whose credentials are being used for excuting CLI commands or calling Node.JS functions.

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

Example

ts
import { getUserPolicy } from "@remotion/lambda";
 
console.log(getUserPolicy()); /* `
{
"Version": "2012-10-17",
"Statements": [
// ...
]
}
` */
ts
import { getUserPolicy } from "@remotion/lambda";
 
console.log(getUserPolicy()); /* `
{
"Version": "2012-10-17",
"Statements": [
// ...
]
}
` */

See also