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! Go to Solution.
Update:
In the <project-name>, i had to actually enter the <project-id>. And it worked.
Update:
In the <project-name>, i had to actually enter the <project-id>. And it worked.