Skip to content

🎥 Make videos programmatically with React

permissions troubleshooting

Jonny Burger697033c8dd1c
diff --git a/packages/docs/docs/lambda/permissions.md b/packages/docs/docs/lambda/permissions.md
index 86bfd0a3a1..e4aca80f49 100644
--- a/packages/docs/docs/lambda/permissions.md
+++ b/packages/docs/docs/lambda/permissions.md
@@ -261,3 +261,4 @@ Allows to write the function logs to CloudWatch for easier debugging.
- [Set up guide](/docs/lambda/setup)
- [`simulatePermissions()`](/docs/lambda/simulatepermissions)
+- [Permissions Troubleshooting](/docs/lambda/troubleshooting/permissions)
diff --git a/packages/docs/docs/lambda/troubleshooting/permissions.md b/packages/docs/docs/lambda/troubleshooting/permissions.md
new file mode 100644
index 0000000000..08e13aaca9
--- /dev/null
+++ b/packages/docs/docs/lambda/troubleshooting/permissions.md
@@ -0,0 +1,35 @@
+---
+id: permissions
+sidebar_label: Permissions
+title: AWS Permissions Troubleshooting
+---
+
+If you get an error message saying that something is wrong with your AWS permissions, read this page for troubleshooting ideas.
+
+## Node.JS APIs don't read the `.env` file
+
+If you use the Node.JS APIs, be aware that they don't read the .env file automatically. This means you need to either load the .env file or set the environment variables manually.
+
+## User and role permissions have been mixed up
+
+There are two policy files, one for an AWS user, one for an AWS role. The policies are different, make sure you have correctly assigned both.
+
+## Not enough time has passed for settings to apply
+
+It can take several minutes until the policies you entered into AWS propagate. Sometimes waiting 2-3 minutes can solve the problem.
+
+## Required permissions have changed
+
+A newer Remotion Lambda version might have required additional permissions. We will note this in the [changelog](/docs/lambda/changelog). Make sure you updated the policies in AWS.
+
+## Other AWS credentials might have been applied
+
+If AWS environment variables failed to load, other credentials might have been loaded from other places such as the AWS CLI. Log the environment variables to ensure you loaded the correct ones.
+
+## Use the validate command
+
+Use the [`npx remotion lambda policies validate`](/docs/lambda/cli/policies) command to validate the user policy. Note that this can still mean the role policy is set wrongly or the environment variables don't get loaded when using the Node.JS APIs.
+
+## See also
+
+- [Lambda - Permissions](/docs/lambda/permissions)
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 4ef4bb0424..2228631f37 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -89,6 +89,12 @@ module.exports = {
],
},
"lambda/checklist",
+ {
+ collapsed: false,
+ type: "category",
+ label: "Troubleshooting",
+ items: ["lambda/troubleshooting/permissions"],
+ },
"lambda/changelog",
"lambda/upgrading",
"lambda/uninstall",
diff --git a/packages/lambda/remotionlambda.zip b/packages/lambda/remotionlambda.zip
index 7ff7d7eebd..09fec81dec 100644
Binary files a/packages/lambda/remotionlambda.zip and b/packages/lambda/remotionlambda.zip differ