googleComputeOrganizationSecurityPolicy
Organization security policies are used to control incoming/outgoing traffic.
\~> Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.
To get more information about OrganizationSecurityPolicy, see:
- API documentation
- How-to Guides
- Creating a firewall policy
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:
-
displayName
- (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 isfirewall
. Possible values arefirewall
.
Attributes Reference
In addition to the arguments listed above, the following computed attributes are exported:
-
id
- an identifier for the resource with formatlocations/global/securityPolicies/{{policyId}}
-
fingerprint
- Fingerprint of this resource. This field is used internally during updates of this resource. -
policyId
- 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 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.
Import
OrganizationSecurityPolicy can be imported using any of these accepted formats: