文档

alicloud_threat_detection_honeypot_preset

更新时间:
一键部署

Provides a Threat Detection Honeypot Preset resource.

For information about Threat Detection Honeypot Preset and how to use it, see What is Honeypot Preset.

-> NOTE: Available since v1.195.0.

Example Usage

Basic Usage

variable "name" {
  default = "tfexample"
}
data "alicloud_threat_detection_honeypot_images" "default" {
  name_regex = "^ruoyi"
}
resource "alicloud_threat_detection_honeypot_node" "default" {
  node_name                    = var.name
  available_probe_num          = 20
  security_group_probe_ip_list = ["0.0.0.0/0"]
}

resource "alicloud_threat_detection_honeypot_preset" "default" {
  preset_name         = var.name
  node_id             = alicloud_threat_detection_honeypot_node.default.id
  honeypot_image_name = data.alicloud_threat_detection_honeypot_images.default.images.0.honeypot_image_name
  meta {
    portrait_option = true
    burp            = "open"
  }
}

Argument Reference

The following arguments are supported:

  • honeypot_image_name - (Required, ForceNew) Honeypot mirror name
  • meta - (Required, ForceNew) Honeypot template custom parameters. See meta below.
  • node_id - (Required, ForceNew) Unique id of management node
  • preset_name - (Required) Honeypot template custom name

meta

The meta supports the following:

  • portrait_option - (Optional) Social traceability.
  • burp - (Required) Burp counter.
  • trojan_git - (Optional) Git countered.

Attributes Reference

The following attributes are exported:

  • id - The key of the resource supplied above.
  • honeypot_preset_id - Unique ID of honeypot Template

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the Honeypot Preset.
  • delete - (Defaults to 5 mins) Used when delete the Honeypot Preset.
  • update - (Defaults to 5 mins) Used when update the Honeypot Preset.

Import

Threat Detection Honeypot Preset can be imported using the id, e.g.

$terraform import alicloud_threat_detection_honeypot_preset.example <id>

  • 本页导读 (0)
文档反馈