Get information about a Google Cloud Function. For more information see the official documentation and API.
data "google_cloudfunctions_function" "my-function" {
name = "function"
}
The following arguments are supported:
name - (Required) The name of a Cloud Function. project - (Optional) The project in which the resource belongs. If it is not provided, the provider project is used.
region - (Optional) The region in which the resource belongs. If it is not provided, the provider region is used.
In addition to the arguments listed above, the following computed attributes are exported:
name - The name of the Cloud Function. source_archive_bucket - The GCS bucket containing the zip archive which contains the function. source_archive_object - The source archive object (file) in archive bucket. description - Description of the function. available_memory_mb - Available memory (in MB) to the function. timeout - Function execution timeout (in seconds). entry_point - Name of a JavaScript function that will be executed when the Google Cloud Function is triggered. trigger_http - If function is triggered by HTTP, this boolean is set. trigger_bucket - If function is triggered by bucket, bucket name is set here. trigger_topic - If function is triggered by Pub/Sub topic, name of topic is set here. https_trigger_url - If function is triggered by HTTP, trigger URL is set here. labels - A map of labels applied to this function.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/google/d/datasource_cloudfunctions_function.html