» alicloud_fc_triggers

This data source provides the Function Compute triggers of the current Alibaba Cloud user.

» Example Usage

data "alicloud_fc_triggers" "fc_triggers_ds" {
  service_name  = "sample_service"
  function_name = "sample_function"
  name_regex    = "sample_fc_trigger"

output "first_fc_trigger_name" {
  value = "${data.alicloud_fc_triggers.fc_triggers_ds.triggers.0.name}"

» Argument Reference

The following arguments are supported:

  • service_name - FC service name.
  • function_name - FC function name.
  • name_regex - (Optional) A regex string to filter results by FC trigger name.
  • ids (Optional, Available in 1.53.0+) - A list of FC triggers ids.
  • 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:

  • ids - A list of FC triggers ids.
  • names - A list of FC triggers names.
  • triggers - A list of FC triggers. Each element contains the following attributes: