alicloud_ess_lifecycle_hooks

This data source provides available lifecycle hook resources.

Example Usage

data "alicloud_ess_lifecycle_hooks" "ds" {
  scaling_group_id = "scaling_group_id"
  name_regex       = "lifecyclehook_name"
}

output "first_lifecycle_hook" {
  value = "${data.alicloud_ess_lifecycle_hooks.ds.hooks.0.id}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported in addition to the arguments listed above: