我可以在组织或文件夹级别设置 Google Cloud Platform 项目配额吗?

Can I set a Google Cloud Platform project quota at the organization or folder level?

我正在使用 Terraform 构建配置以创建具有所有必需基础架构的 GCP 项目,该项目将用于逐项创建非生产环境。

我已经达到了每个项目后端服务限制的配额限制,默认情况下设置为 9,但我们需要 19。通过 GCP 控制台表单手动请求增加几乎可以立即完成,但我想要运行 这是自动化管道的一部分。

有没有办法在组织或文件夹级别请求增加配额,然后将其应用于该范围内的所有新项目?

遗憾的是,您无法在组织或文件夹级别设置项目配额。

请查看文档 Working with quotas:

Google Cloud enforces quotas on resource usage for project owners, setting a limit on how much of a particular Google Cloud resource your project can use.

此外,在 Managing your quota using the Cloud Console 部分:

Depending on your resource usage, you may want to adjust your project's quota limits up or down.

您的所有 resources belongs to your projects and you can link them to your billing 帐户仅在项目级别。因此,预计您只能在项目级别更改配额。

您可以尝试通过在 Google Public 问题跟踪器上提交 feature request 来更改此行为。

就此问题联系 Google 支持人员后,我们得到以下答复:

Currently there is no process to increase the quota on the Organization/Folder level, neither is there anything that we can offer to override this "quota". The only possible solution that I can recommend right now would be for you to request a quota increase on the new projects manually.

对于任何具有相同用例的人,我们在我们手动请求(并获得)增加的文件夹下创建了一个项目池。然后,我们将这些项目用作 运行 平台所需的 Terraform 资源的容器。这样,每当我们需要一个新的功能环境时,我们都会提供 Terraform 配置并将代码部署到池中的可用项目。合并分支时,我们 terraform destroy 资源。