Skip to content

content_update_policy_attachment

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

The following API scopes are required:

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

Import is supported using the following syntax:

Terminal window
# Content Update Policy Attachment can be imported by specifying the id.
terraform import crowdstrike_content_update_policy_attachment.example 7fb858a949034a0cbca175f660f1e769