Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

route rules not working

Hello,

I have set up the following route rules for my URL map:

defaultService: projects/test-case2-b/global/backendServices/cross-ref-backend-service
name: test-path-matcher
routeRules:
    - matchRules:
      - prefixMatch: '/images/*'
priority: 2
routeAction:
  weightedBackendServices:
     - backendService: projects/test-case2-b/global/backendBuckets/cross-ref-backend-bucket

 

I am getting the following error:

Error:
Invalid value for field 'resource': '{ "name": "cross-url-map", "hostRules": [{ "hosts": ["*"], "pathMatcher": "test-path-matcher...'. Invalid resource: URL_MAP/678147306215.cross-url-map

---

I followed the guidance in this doc:

---

How can i get this to work please?  

 

2 4 423