gcf/ERR/2022_002

Cloud Function deployment failure due to Resource Location Constraint.

Product: Cloud Functions
Rule class: ERR - Something that is very likely to be wrong

Description

Function is deployed in a region not allowed by the Organization Policy

There is an Organization Policy in place for your project with a constraint named Resource Location Restriction. This restricts the physical location of the new resource (in your case Cloud Functions) that you are trying to deploy. Thus you are facing the error The request has violated one or more Org Policies. Please refer to the respective violations for more information.

Remediation

Further information