π₯ Make videos programmatically with React
lambda insights docs
Jonny Burger634e5e95583b
diff --git a/packages/docs/docs/lambda/insights.md b/packages/docs/docs/lambda/insights.mdindex e93ff931b4..9d704ac526 100644--- a/packages/docs/docs/lambda/insights.md+++ b/packages/docs/docs/lambda/insights.md@@ -46,6 +46,17 @@ const { alreadyExisted } = await deployFunction({assert(!alreadyExisted);```+## Add a role to the Lambda function++In order to actually allow Lambda to send data to CloudWatch, you need to do this once:++- Go to the Lambda Dashboard and select any Remotion Lambda function.+- In the "Configuration" tab, scroll down to "Monitoring and operations tools" and in the "Additional monitoring tools" section, click "Edit".+- Toggle the switch to "Enable AWS Lambda Insights". If it is already turned on, disable it, save, and then enable it again.++This will add the necessary permissions to the role of the Lambda function.+All Lambda functions share the same role with the default setup, so you only need to do this once.+## View Lambda insightsIn your CloudWatch dashboard ([link for `us-east-1`](https://eu-central-1.console.aws.amazon.com/cloudwatch/home)) under Insights β Lambda Insights β Single function, you can view the metrics of the Remotion Lambda function.