https://docs.cloud.google.com/resource-manager/docs/organization-policy/defining-locations?hl=ja
- 組織内で利用可能なlocationを絞る
- e.g. アメリカ国内に絞りたい場合は
in:us-locationsを指定する - 以下、サンプルコード(asiaとusに制限)
resource "google_project_organization_policy" "resource_locations" {
project = project_id
constraint = "constraints/gcp.resourceLocations"
list_policy {
allow {
values = ["in:asia-locations", "in:us-central1"]
}
}
}