cloudfunctions-http

google-terraform-modules/cloudfunctions-http/google

Terraform Module HCL GOOGLE

Create Google CloudFunctions HTTP

Install
module "cloudfunctions-http" {
source = "google-terraform-modules/cloudfunctions-http/google"
version = "1.12.0"
}
plain text: /constructs/tfmod-google-terraform-modules-cloudfunctions-http-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

Google HTTP CloudFunctions Compatible provider 1.8.0 - 1.12.0 Example * 1 function, timeout 30s ``hcl resource "google_storage_bucket" "bucket" { name = "test-bucket-cloudfunction" } module "cloudfunction" { source = "github.com/google-terraform-modules/terraform-google-cloudfunctions-http" bucket_name = "${google_storage_bucket.bucket.name}" bucket_archive_name = "helloHttp.zip" local_path = "${path.module}/code/helloHttp.zip" function_name = "helloHttp" function_entry_point = "helloHttp" } ` Inputs | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-----:| | local_path | A path to the data you want to upload | string | - | yes | | function_name | A user-defined name of the function. Function names must be unique globally | string | - | yes | | functi

Inputs (8)
NameTypeDescriptionDefault
function_nameanyA user-defined name of the function. Function names must be unique globally required
function_entry_pointanyName of a JavaScript function that will be executed when the Google Cloud Functi required
bucket_nameanyThe name of the containing bucket required
local_pathanyA path to the data you want to upload required
function_descriptionanyDescription of the function""
function_memoryanyMemory (in MB), available to the function. Allowed values are: 128MB, 256MB, 512"128"
function_timeoutanyTimeout (in seconds) for the function. Default value is 60 seconds. Cannot be mo"30"
bucket_archive_nameanyThe name of the object"index.zip"
Outputs (2)
url — URL which triggers function execution
region — Region of function. Currently can be only `us-central1`
Resources (2)
google_cloudfunctions_functiongoogle_storage_bucket_object
Details
FrameworkTerraform Module
LanguageHCL
Version1.12.0
Cloud GOOGLE
★ Stars6
Forks9
Total downloads5.8k
Inputs8
Outputs2
Resources2
LicenseMIT
Namespacegoogle-terraform-modules
Updated