I'm trying to add a global forwarding rule using Deployment Manager, but get an error that "region" must be specified. Has anyone found a workaround?
For example, I can create this rule using the gcloud command (real IP address replaced):
$ gcloud compute forwarding-rules create live --global --address 1.2.3.4 --ports 443 --target-https-proxy live-target-proxy
and it succeeds. Using describe then shows:
$ gcloud compute forwarding-rules describe live --global
IPAddress: 1.2.3.4
IPProtocol: TCP
creationTimestamp: '2016-07-18T10:22:31.969-07:00'
description: ''
id: '725036370...'
kind: compute#forwardingRule
name: live
portRange: 443-443
selfLink:
https://www.googleapis.com/compute/v1/projects/.../global/forwardingRules/live
target:
https://www.googleapis.com/compute/v1/projects/.../global/targetHttpsProxies/live-target-proxy
When using Deployment Manager, I entered this into the YAML file as:
- name: live
type: compute.v1.forwardingRule
properties:
IPProtocol: TCP
IPAddress: 1.2.3.4
portRange: 443-443
target: global/targetHttpsProxies/live-target-proxy
but updating the deployment fails:
gcloud deployment-manager deployments update deployment-main \
--preview --config deployment-main.yaml \
--create-policy CREATE_OR_ACQUIRE --delete-policy ABANDON
Waiting for update operation-1468863312830-537ec63fc1e31-cbfb2c59-4dde4e6c...failed.
ERROR: (gcloud.deployment-manager.deployments.update) Error in Operation operation-1468863312830-537ec63fc1e31-cbfb2c59-4dde4e6c: <ErrorValue
errors: [<ErrorsValueListEntry
code: u'CONDITION_NOT_MET'
message: u'"": domain: validation; keyword: properties; message:
required property(ies) not found; missing: ["region"]; required: ["region"]'>]>
I tried adding "region: global" but that isn't accepted.
James