Organization security policies are used to control incoming/outgoing traffic.
To get more information about OrganizationSecurityPolicy, see:
resource "google_compute_organization_security_policy" "policy" {
provider = google-beta
display_name = "tf-test%{random_suffix}"
parent = "organizations/123456789"
}
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
.
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.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.OrganizationSecurityPolicy can be imported using any of these accepted formats:
locations/global/securityPolicies/{{policy_id}}
{{policy_id}}
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}}