超出 Terraform 转发规则配额

Terraform Forwarding Rule Quota Exceeded

我在 terraform 中尝试创建转发规则,但出现以下错误。它说我的限制是 250,但是当我进入项目(在 iam/quotas 下)并寻找“每个 VPC 网络的内部 TCP/UDP 负载均衡器转发规则”的配额限制时,我看到它是低于 250.

我是否在 gcp 控制台中查看了错误的配额?
gcp 控制台上的当前使用情况是否显示延迟值?
terraform 如何获取当前配额值?

Error waiting to create ForwardingRule: Error waiting for Creating ForwardingRule: You cannot create any more internal forwarding rules in the project, as the limit of '250.0' for network peering group is reached for the network 'GLOBAL:global/COMPUTE/PROJECT:SAMPLE_PROJECT/NETWORK:vpc-network'.

根据您收到的错误消息,我看到您正在使用 VPC 对等连接。

您需要考虑到如果您使用 VPC 对等互连,INTERNAL_FORWARDING_RULES_PER_NETWORK change, the forwarding rules will be added for each peering in your VPC with the quota for the other VPC(s). You can see more specific details in VPC Network Peering limits 的限制。

本文档讨论 Effective limits for VPC Network Peering

要增加配额,您可以按照这些 steps or open a case directly with GCP Support 并请求增加配额。