gcp orgnaization policy - gcp.resourceLocations

in:us-locationsIn GCP we can use organization policy to restrict user to a specific location for example, we only want to create storage in us region only.

Goto IAM & Admin -> Organization Policy -> search for gcp.resourceLocations.

The click on edit where you can override the setting here. Click on "override parent's policy"



And then add a custom rule here by clicking on Policy Type - allow and then the input text - 'in:us-locations'. Here we are restricting resources only to us region.



And click on "set policy":-


And if you try to create a bucket, you will get this :-








 




Comments

Popular posts from this blog

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

llama cpp running it in google colab