» alicloud_fc_services

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

» Example Usage

data "alicloud_fc_services" "fc_services_ds" {
  name_regex = "sample_fc_service"
}

output "first_fc_service_name" {
  value = "${data.alicloud_fc_services.fc_services_ds.services.0.name}"
}

» Argument Reference

The following arguments are supported:

  • name_regex - (Optional) A regex string to filter results by FC service 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:

  • services - A list of FC services. Each element contains the following attributes:
    • id - FC service ID.
    • name - FC service name.
    • description - FC service description.
    • role - FC service role ARN.
    • internet_access - Indicate whether the service can access to internet or not.
    • creation_time - FC service creation time.
    • last_modification_time - FC service last modification time.
    • log_config - A list of one element containing information about the associated log store. It contains the following attributes:
    • project - Log Service project name.
    • logstore - Log Service store name.
    • vpc_config - A list of one element containing information about accessible VPC resources. It contains the following attributes:
    • vpc_id - Associated VPC ID.
    • vswitch_ids - Associated VSwitch IDs.
    • security_group_id - Associated security group ID.