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.ids
(Optional, Available in 1.53.0+) - A list of functions ids.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:
ids
- A list of functions ids.names
- A list of functions names.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.initializer
- The entry point of the function's initialization.initialization_timeout
- The maximum length of time, in seconds, that the function's initialization should be run for.instance_type
- The instance type of the function.instance_concurrency
- The maximum number of requests can be executed concurrently within the single function instance.ca_port
- The port that the function listen to, only valid for custom runtime and custom container runtime.custom_container_config
- The configuration for custom container runtime. It contains following attributes:image
- The container image address.command
- The entry point of the container, which specifies the actual command run by the container.args
- The args field specifies the arguments passed to the command.
文档内容是否对您有帮助?