Hello, Did anyone had a problem with creating a Fo...
# general
r
Hello, Did anyone had a problem with creating a ForwardingRule?
Error creating ForwardingRule: googleapi: Error 400: Invalid value for field 'resource.target':
Invalid target type TARGET_HTTP_PROXY for forwarding rule in scope REGION, invalid
Copy code
`const proxy = new gcp.compute.TargetHttpProxy('backend-api-proxy', {
  urlMap: urlMap.selfLink,
  name: 'backend-api-proxy',
});

// // Create a forwarding rule
const forwardingRule = new gcp.compute.ForwardingRule(
  'backend-api-http-forwarding-rule',
  {
    name: 'backend-api-http-forwarding-rule',
    region: 'europe-west1',
    target: proxy.selfLink,
    ipAddress: '0.0.0.0',
    portRange: '80',
  }
);