We are able to create a dataset in US region , from today onwards we are unable to create the dataset in US region, If we create the dataset in US region we are getting the below error
US violates constraint constraints/gcp.resourceLocations on the resource projects/{project_id}/datasets/SR_789
Based on the error message you provided, it seems that the issue is related to the "Resource Location Constraint" which is set at the organization policy level in Google Cloud Platform (GCP).
This constraint, constraints/gcp.resourceLocations
, restricts where Google Cloud resources can be located. It is used to enforce geographical and regional compliance requirements across your GCP resources. If a location (like 'US' in your case) is not listed in the allowed locations in the policy, you cannot create resources in that location.
In your case, it appears that the 'US' region is not an allowed location in the policy. You or your organization administrator would need to modify the organization policy to allow the 'US' location for datasets.
Here are the steps you can follow to modify the organization policy:
Custom
.Add item
field, add 'US' and click Add
.Save
to save the changes.Keep in mind these changes can affect other GCP services and resources as well, so please make sure to understand the potential impacts and consult with your organization's policy administrators as necessary before making these changes.
If you are not the organization administrator and do not have the necessary permissions to modify the organization policy, you will need to contact your administrator to make these changes.
Also, note that organization policies might take some time to propagate to all resources, so you may need to wait a while before you can successfully create a dataset in the 'US' region.