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.
API Scopes
Section titled “API Scopes”The following API scopes are required:
- Content Update Policy: READ
- Content Update Policy: WRITE
Example Usage
Section titled “Example Usage”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}Schema
Section titled “Schema”Required
Section titled “Required”id(String) The content update policy id you want to attach to.
Optional
Section titled “Optional”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.
Read-Only
Section titled “Read-Only”last_updated(String) Timestamp of the last Terraform update of the resource.
Import
Section titled “Import”Import is supported using the following syntax:
# Content Update Policy Attachment can be imported by specifying the id.terraform import crowdstrike_content_update_policy_attachment.example 7fb858a949034a0cbca175f660f1e769