Skip to content

filevantage_policy_attachment

This resource allows managing the host groups and rule groups attached to a FileVantage policy. By default (when exclusive is true), this resource takes exclusive ownership over the host groups and rule groups assigned to a FileVantage policy. When exclusive is false, this resource only manages the specific host groups and rule groups defined in the configuration. If you want to fully create or manage a FileVantage policy please use the filevantage_policy resource.

The following API scopes are required:

  • Falcon FileVantage: READ
  • Falcon FileVantage: WRITE
terraform {
required_providers {
crowdstrike = {
source = "registry.terraform.io/crowdstrike/crowdstrike"
}
}
}
provider "crowdstrike" {
cloud = "us-2"
}
resource "crowdstrike_filevantage_policy_attachment" "example" {
id = "16c0eecfeebb47ce95185fda2e5b3112"
host_groups = ["df868c936cd443e5a95b2603e2483602"]
rule_groups = ["507117bc669d41bb93d0a009f557bb23"]
exclusive = false
}
output "filevantage_policy_attachment" {
value = crowdstrike_filevantage_policy_attachment.example
}
  • id (String) The FileVantage policy id you want to attach to.
  • exclusive (Boolean) When true (default), this resource takes exclusive ownership of all host groups and rule groups attached to the FileVantage policy. When false, this resource only manages the specific host groups and rule groups defined in the configuration, leaving other groups untouched.
  • host_groups (Set of String) Host Group IDs to attach to the FileVantage policy.
  • rule_groups (Set of String) FileVantage Rule Group IDs to attach to the FileVantage policy.
  • last_updated (String) Timestamp of the last Terraform update of the resource.

Import is supported using the following syntax:

Terminal window
# FileVantage Policy Attachment can be imported by specifying the id.
terraform import crowdstrike_filevantage_policy_attachment.example 7fb858a949034a0cbca175f660f1e769