Skip to content

sensor_update_policy_precedence

This resource allows you to set the precedence of Sensor Update Policies based on the order of IDs.

The following API scopes are required:

  • Sensor update policies: READ
  • Sensor update policies: WRITE
terraform {
required_providers {
crowdstrike = {
source = "registry.terraform.io/crowdstrike/crowdstrike"
}
}
}
provider "crowdstrike" {
cloud = "us-2"
}
resource "crowdstrike_sensor_update_policy_precedence" "example" {
ids = [
"a1j09y3yq0wnrpb5o6jlij9e4f40k6lq",
"2asia54xti93bg0jbr5hfpqqbhxbyeoa",
"xuzq8hs1uyc2s7zdar3fli0shiyl22vc",
]
platform_name = "linux"
enforcement = "dynamic"
}
output "sensor_update_policy_precedence" {
value = crowdstrike_sensor_update_policy_precedence.example
}
  • enforcement (String) The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
  • ids (List of String) The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
  • platform_name (String) That platform of the sensor update policies. (Windows, Mac, Linux)
  • last_updated (String) Timestamp of the last Terraform update of the resource.