Skip to main content

Remotion Lambda 中的存储桶名称

一个 Remotion Lambda 存储桶名称(例如 remotionlambda-apsouth1-3ysk0nyazp)有两个特殊属性:

🌐 A Remotion Lambda bucket name (for example remotionlambda-apsouth1-3ysk0nyazp) has two special attributes:

它的前缀是remotionlambda-


它的名称中包含区域


不建议使用自定义存储桶名称,因为这需要更改你的策略,并将存储桶名称明确传递给所有 API。

🌐 It is not recommended to use a custom bucket name because it requires changing your policies and passing the bucket name explicitly to all APIs.

使用不同的存储桶名称

🌐 Using a different bucket name

note

通过使用自定义的存储桶名称,你选择跳过 Remotion 的默认设置和验证。 确保你明确将存储桶名称传递给所有 API,尤其是那些存储桶名称可选的 API。 还要确保 Lambda 和 S3 存储桶可以通过你使用的角色权限访问。

要使用自定义存储桶名称,你需要:

🌐 To use a custom bucket name, you need to:

名称中的 AWS 区域

🌐 AWS Region in the name

这些桶的名称中包含区域(例如 remotionlambda-apsouth1-3ysk0nyazp)。这是因为当通过 AWS API 获取 AWS 桶列表时,响应中不包含区域信息。

🌐 The buckets contain the region in their name (for example remotionlambda-apsouth1-3ysk0nyazp). This is because when the list of AWS buckets is obtained through the AWS API, the region is not included in the response.

如果区域不在存储桶名称中,则需要对每个存储桶进行查询,这需要额外的 API 调用并且会降低渲染速度。

🌐 If the region is not in the bucket name, it needs to be queried for each bucket, which requires extra API calls and slows down the render.

如果你在 2022 年 12 月之前使用 Remotion 版本设置你的存储桶,那么你的存储桶名称中不包含区域(例如 remotionlambda-0if1fa0wy0)。通过重命名存储桶,你可以加快渲染速度并减少 API 调用,特别是当你在各个区域拥有大量 Remotion 存储桶时。

🌐 If you set up your buckets with a Remotion version before December 2022, you have bucket names that do not include the region in their name (for example remotionlambda-0if1fa0wy0). By renaming the buckets, you can speed up render and reduce API calls, especially if you have a lot of Remotion buckets across regions.

另请参阅

🌐 See also