» alicloud_actiontrails

This data source provides a list of action trail of the current Alibaba Cloud user.

» Example Usage

data "alicloud_actiontrails" "trails" {
  name_regex = "tf-testacc-actiontrail"
}

output "first_trail_name" {
  value = "${data.alicloud_actiontrails.trails.actiontrails.0.name}"
}

» Argument Reference

The following arguments are supported:

  • name_regex - (Optional) A regex string to filter results action trail name.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

» Attributes Reference

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