我正在尝试部署全局转发规则。我的yaml文件在下面
resources:
- name: rule
type: compute.v1.forwardingRule
properties:
portRange: 80-80
IPProtocol: TCP
target: projects/{{ env["project"] }}/global/targetHttpProxies/myproxy
IPAddress: xx.xx.xx.xx
当我运行命令时:gcloud deployment-manager deployments创建grule --config test.yaml
它给出了错误,说明需要资源属性区域。它要求区域,但我正在尝试创建一个全球转发规则,我不需要给予区域。
也许它应该是compute.v1.globalForwardingRule
?