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

error: Required 'compute.backendServices.use' permission for 'projects/<pname>/global/backendService

When i try to create a global HTTPS load balancer with a serverless NEG backend using the Console, i get the following error:

Required 'compute.backendServices.use' permission for 'projects/<project-name>/global/backendServices/base'.

The advanced routing configuration of my URL map is as follows:

 

 

 

defaultService: projects/cloud-load-balancing/global/backendServices/base
name: example
routeRules:
- urlRedirect:
    stripQuery: true
    hostRedirect: example.com
  matchRules:
  - prefixMatch: /redirect
  priority: 0
- matchRules:
  - prefixMatch: /one
  priority: 1
  routeAction:
    weightedBackendServices:
    - backendService: projects/cloud-load-balancing/global/backendServices/one
      weight: 100
    urlRewrite:
      hostRewrite: one
- matchRules:
  - prefixMatch: /two
  priority: 2
  routeAction:
    weightedBackendServices:
    - backendService: projects/cloud-load-balancing/global/backendServices/two
      weight: 100
    urlRewrite:
      hostRewrite: two
- matchRules:
  - prefixMatch: /subfolder/
  priority: 3
  routeAction:
    weightedBackendServices:
    - backendService: projects/cloud-load-balancing/global/backendServices/one
      weight: 100
    urlRewrite:
      pathPrefixRewrite: /
      hostRewrite: one
- matchRules:
  - prefixMatch: /
    queryParameterMatches:
    - name: "user"
      presentMatch: true
  priority: 4
  routeAction:
    weightedBackendServices:
    - backendService: projects/cloud-load-balancing/global/backendServices/two
      weight: 100
    urlRewrite:
      hostRewrite: two

 

 

 

Each backend service (base, one, two) points to a differnet Cloud Run serverless NEG.

I must add that i am able to create a separate application load balancer. it is just that when i create a load balancer with this configuration, it fails.

Why am i getting this error? What am i missing here please?

Solved Solved
0 1 110
1 ACCEPTED SOLUTION

Update:

In the <project-name>, i had to actually enter the <project-id>. And it worked.

View solution in original post

1 REPLY 1

Update:

In the <project-name>, i had to actually enter the <project-id>. And it worked.