» alicloud_fc_functions
This data source provides the Function Compute functions of the current Alibaba Cloud user.
» Example Usage
data "alicloud_fc_functions" "functions_ds" {
service_name = "sample_service"
name_regex = "sample_fc_function"
}
output "first_fc_function_name" {
value = "${data.alicloud_fc_functions.functions_ds.functions.0.name}"
}
» Argument Reference
The following arguments are supported:
-
service_name
- Name of the service that contains the functions to find. -
name_regex
- (Optional) A regex string to filter results by function name. -
output_file
- (Optional) File name where to save data source results (after runningterraform plan
).
» Attributes Reference
The following attributes are exported in addition to the arguments listed above:
-
functions
- A list of functions. Each element contains the following attributes:-
id
- Function ID. -
name
- Function name. -
description
- Function description. -
runtime
- Function runtime. The list of possible values is available here. -
handler
- Function entry point in the code. -
timeout
- Maximum amount of time the function can run in seconds. -
memory_size
- Amount of memory in MB the function can use at runtime. -
code_size
- Function code size in bytes. -
code_checksum
- Checksum (crc64) of the function code. -
creation_time
- Function creation time. -
last_modification_time
- Function last modification time. -
environment_variables
- A map that defines environment variables for the function.
-