» 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:

  • display_name - (Required) A textual name of the security policy.

  • parent - (Required) The parent of this OrganizationSecurityPolicy in the Cloud Resource Hierarchy. Format: organizations/{organization_id} or folders/{folder_id}

  • description - (Optional) A textual description for the organization security policy.

  • type - (Optional) The type indicates the intended use of the security policy. For organization security policies, the only supported type is "FIREWALL". Default value is FIREWALL. Possible values are FIREWALL.

» Attributes Reference

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

  • id - an identifier for the resource with format locations/global/securityPolicies/{{policy_id}}

  • fingerprint - Fingerprint of this resource. This field is used internally during updates of this resource.

  • policy_id - The unique identifier for the resource. This identifier is defined by the server.

» Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 4 minutes.
  • update - Default is 4 minutes.
  • delete - Default is 4 minutes.

» Import

OrganizationSecurityPolicy can be imported using any of these accepted formats:

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