Provides a Threat Detection Honey Pot resource.
For information about Threat Detection Honey Pot and how to use it, see What is Honey Pot.
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_honey_pot" "default" {
honeypot_image_name = data.alicloud_threat_detection_honeypot_images.default.images.0.honeypot_image_name
honeypot_image_id = data.alicloud_threat_detection_honeypot_images.default.images.0.honeypot_image_id
honeypot_name = var.name
node_id = alicloud_threat_detection_honeypot_node.default.id
}
The following arguments are supported:
honeypot_image_id
- (Required, ForceNew) The image ID of the honeypot.honeypot_image_name
- (Required, ForceNew) Honeypot mirror name.honeypot_name
- (Required) Honeypot custom name.node_id
- (Required, ForceNew) The ID of the honeypot management node.The following attributes are exported:
id
- The key
of the resource supplied above. The value is the same as honeypot_id
.honeypot_id
- Honeypot ID.preset_id
- The custom parameter ID of honeypot.state
- Honeypot status.status
- The status of the resource.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Honey Pot.delete
- (Defaults to 5 mins) Used when delete the Honey Pot.update
- (Defaults to 5 mins) Used when update the Honey Pot.Threat Detection Honey Pot can be imported using the id, e.g.
$terraform import alicloud_threat_detection_honey_pot.example <id>