Skip to main content

AWS 权限故障排除

如果你收到错误信息提示你的 AWS 权限有问题,请阅读此页面获取故障排除的建议。

🌐 If you get an error message saying that something is wrong with your AWS permissions, read this page for troubleshooting ideas.

Node.JS API 不会读取 .env 文件

🌐 Node.JS APIs don't read the .env file

如果你使用 Node.JS API,请注意它们不会自动读取 .env 文件。这意味着你需要手动加载 .env 文件或手动设置环境变量。

🌐 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

有两个策略文件,一个用于 AWS 用户,一个用于 AWS 角色。这些策略不同,请确保你已正确分配了两者。

🌐 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

你在 AWS 中输入的策略可能需要几分钟才能生效。有时等待 2-3 分钟可以解决问题。

🌐 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

较新的 Remotion Lambda 版本可能需要额外的权限。我们将在 更新日志 中注明这一点。请确保你在 AWS 中更新策略。

🌐 A newer Remotion Lambda version might have required additional permissions. We will note this in the changelog. Make sure you update the policies in AWS.

其他 AWS 凭证可能已被应用

🌐 Other AWS credentials might have been applied

如果 AWS 环境变量加载失败,其他凭证可能已经从其他地方加载,例如 AWS CLI。记录环境变量以确保你加载了正确的变量。

🌐 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.

使用 validate 命令

🌐 Use the validate command

使用 npx remotion lambda policies validate 命令来验证用户策略。请注意,这仍然可能意味着角色策略设置错误,或者在使用 Node.JS API 时环境变量未被加载。

🌐 Use the npx remotion lambda policies validate 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