Google compute engine Google部署管理器-转发规则(错误)

Google compute engine Google部署管理器-转发规则(错误),google-compute-engine,google-cloud-platform,Google Compute Engine,Google Cloud Platform,这里的帮助将不胜感激,这是我挣扎了一段时间的事情。我正在尝试使用Google部署管理器部署VPN。据我所知,我需要以下内容: VpnTargetGateway ForwardingRules VpnTunnels ReservedIP 我在货运规则方面遇到了麻烦。在这里,我指定已创建的保留IP地址,并将其分配给目标网关。这是我的密码: resources: - name: vmx-forwarding-rules type: compute.v1.forwardingRule

这里的帮助将不胜感激,这是我挣扎了一段时间的事情。我正在尝试使用Google部署管理器部署VPN。据我所知,我需要以下内容:

VpnTargetGateway
ForwardingRules
VpnTunnels
ReservedIP
我在货运规则方面遇到了麻烦。在这里,我指定已创建的保留IP地址,并将其分配给目标网关。这是我的密码:

resources: 
 - name: vmx-forwarding-rules
   type: compute.v1.forwardingRule
   properties:
     region: us-central1
     IPAddress: https://www.googleapis.com/compute/v1/projects/{{env["project"] }/regions/us-central1/addresses/vmx-ip
     IPProtocol: "ESP"
     target: https://www.googleapis.com/compute/v1/projects/{{ env["project"] }/regions/us-central1/targetVpnGateways/vmx-vpn-gateway
以下是我收到的错误:

message:u“来自compute.v1类型的资源的意外响应。转发规则:400{statusMessage=错误请求,错误=[{message=字段'resource':''的值无效。应为目标类型为target\u VPN\u GATEWAY、domain=global、reason=Invalid}]}的转发规则指定保留IP>

是否有人有这方面的经验,或者知道更好的位置来为Deployment Manager找到帮助


谢谢

在YAML配置中尝试以下操作:

resources:
- name: vmx-ip
  type: compute.v1.address
  properties:
    region: us-central1

- name: vmx-forwarding-rules
  type: compute.v1.forwardingRule
  properties:
    region: us-central1
    IPAddress: $(ref.vmx-ip.address)
    IPProtocol: "ESP"
    target: https://www.googleapis.com/compute/v1/projects/{{ env["project"] }}/regions/us-central1/targetVpnGateways/vmx-vpn-gateway

在YAML配置中尝试以下操作:

resources:
- name: vmx-ip
  type: compute.v1.address
  properties:
    region: us-central1

- name: vmx-forwarding-rules
  type: compute.v1.forwardingRule
  properties:
    region: us-central1
    IPAddress: $(ref.vmx-ip.address)
    IPProtocol: "ESP"
    target: https://www.googleapis.com/compute/v1/projects/{{ env["project"] }}/regions/us-central1/targetVpnGateways/vmx-vpn-gateway

我还通过Google Cloud Deployment Manager部署保留的ip地址。如何在不手动查找和添加地址的情况下添加地址。我正在尝试自动部署VPN,保留地址由Google生成。我还通过Google Cloud Deployment Manager部署保留ip地址。如何在不手动查找和添加地址的情况下添加地址。我正在尝试自动部署VPN,保留地址由Google生成。