alicloud_threat_detection_backup_policy

Provides a Threat Detection Backup Policy resource.

For information about Threat Detection Backup Policy and how to use it, see What is Backup Policy.

Example Usage

Basic Usage

data "alicloud_threat_detection_assets" "default" {
  machine_types = "ecs"
}
resource "alicloud_threat_detection_backup_policy" "default" {
  backup_policy_name = "tf-example-name"
  policy             = "{\"Exclude\":[\"/bin/\",\"/usr/bin/\",\"/sbin/\",\"/boot/\",\"/proc/\",\"/sys/\",\"/srv/\",\"/lib/\",\"/selinux/\",\"/usr/sbin/\",\"/run/\",\"/lib32/\",\"/lib64/\",\"/lost+found/\",\"/var/lib/kubelet/\",\"/var/lib/ntp/proc\",\"/var/lib/container\"],\"ExcludeSystemPath\":true,\"Include\":[],\"IsDefault\":1,\"Retention\":7,\"Schedule\":\"I|1668703620|PT24H\",\"Source\":[],\"SpeedLimiter\":\"\",\"UseVss\":true}"
  policy_version     = "2.0.0"
  uuid_list          = [data.alicloud_threat_detection_assets.default.ids.0]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Threat Detection Backup Policy can be imported using the id, e.g.

$ terraform import alicloud_threat_detection_backup_policy.example <id>