refined-rose-1179
05/21/2023, 7:15 PMError creating ForwardingRule: googleapi: Error 400: Invalid value for field 'resource.target':
Invalid target type TARGET_HTTP_PROXY for forwarding rule in scope REGION, invalid
`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',
}
);