Using Console
Using CLI
[CONSTRAINT]
with the name of the policy constraint.
[CONSTRAINT]
with the name of the policy constraint and [LOCATION1]
, [LOCATION2]
, etc. with the locations to which you want to restrict the creation of cloud resources.
[CONSTRAINT]
with the name of the policy constraint.
Using Python
google-cloud-resource-manager
library to manage GCP resources.
config.yaml
file that looks like this: