google_compute_organization_security_policy

Organization security policies are used to control incoming/outgoing traffic.

To get more information about OrganizationSecurityPolicy, see:

Example Usage - Organization Security Policy Basic

resource "google_compute_organization_security_policy" "policy" {
  provider = google-beta
  display_name = "tf-test%{random_suffix}"
  parent       = "organizations/123456789"
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

OrganizationSecurityPolicy can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import OrganizationSecurityPolicy using one of the formats above. For example:

import {
  id = "locations/global/securityPolicies/{{policy_id}}"
  to = google_compute_organization_security_policy.default
}

When using the terraform import command, OrganizationSecurityPolicy can be imported using one of the formats above. For example:

$ terraform import google_compute_organization_security_policy.default locations/global/securityPolicies/{{policy_id}}
$ terraform import google_compute_organization_security_policy.default {{policy_id}}