A security profile group defines a container for security profiles.
To get more information about SecurityProfileGroup, see:
resource "google_network_security_security_profile_group" "default" {
provider = google-beta
name = "sec-profile-group"
parent = "organizations/123456789"
description = "my description"
threat_prevention_profile = google_network_security_security_profile.security_profile.id
labels = {
foo = "bar"
}
}
resource "google_network_security_security_profile" "security_profile" {
provider = google-beta
name = "sec-profile"
type = "THREAT_PREVENTION"
parent = "organizations/123456789"
location = "global"
}
The following arguments are supported:
name
-
(Required)
The name of the security profile group resource.description
-
(Optional)
An optional description of the profile. The Max length is 512 characters.
labels
-
(Optional)
A map of key/value label pairs to assign to the resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labels
for all of the labels present on the resource.
threat_prevention_profile
-
(Optional)
Reference to a SecurityProfile with the threat prevention configuration for the SecurityProfileGroup.
location
-
(Optional)
The location of the security profile group.
The default value is global
.
parent
-
(Optional)
The name of the parent this security profile group belongs to.
Format: organizations/{organization_id}.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format {{parent}}/locations/{{location}}/securityProfileGroups/{{name}}
create_time
-
Time the security profile group was created in UTC.
update_time
-
Time the security profile group was updated in UTC.
etag
-
This checksum is computed by the server based on the value of other fields,
and may be sent on update and delete requests to ensure the client has an up-to-date
value before proceeding.
terraform_labels
-
The combination of labels configured directly on the resource
and default labels configured on the provider.
effective_labels
-
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.SecurityProfileGroup can be imported using any of these accepted formats:
{{parent}}/locations/{{location}}/securityProfileGroups/{{name}}
In Terraform v1.5.0 and later, use an import
block to import SecurityProfileGroup using one of the formats above. For example:
import {
id = "{{parent}}/locations/{{location}}/securityProfileGroups/{{name}}"
to = google_network_security_security_profile_group.default
}
When using the terraform import
command, SecurityProfileGroup can be imported using one of the formats above. For example:
$ terraform import google_network_security_security_profile_group.default {{parent}}/locations/{{location}}/securityProfileGroups/{{name}}