cloud-function

fuzzylabs/cloud-function/google

Terraform Module HCL GOOGLE

An opinionated Terraform Module provisioning a Google Cloud Function

Install
module "cloud-function" {
source = "fuzzylabs/cloud-function/google"
version = "0.1.0"
}
plain text: /constructs/tfmod-fuzzylabs-cloud-function-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-google-cloud-function This is an opinionated module following the best practice principle of least privilege permissions. By default a cloud function will use the default service account that has a very broad 'Editor role' attached to it. This module creates the following resources: - A HTTP Triggered Cloud Function - A Service Account specific to the Cloud Function - Bind a list of provided IAM roles to the service account. Usage Basic usage of this module is as follows: ``hcl module "cloud_function" { source = "github.com/fuzzylabs/terraform-google-cloud-function?ref=0.1.0" project = " " name = "foo" runtime = "go111" source_archive_bucket = " " source_archive_object = "/foo/bar.zip" entry_point = "mainFunction" } ` Functional examples are included in the examples directory. In

Inputs (13)
NameTypeDescriptionDefault
runtimestringThe runtime in which the function is running required
entry_pointstringName of the function that will be executed when the Google Cloud Function is tri required
project_idstringThe ID of the project in which to provision resources. required
source_archive_bucketstringThe GCS bucket containing the zip archive which contains the function required
source_archive_objectstringThe source archive object (file) in archive bucket required
regionstringThe GCP region in which the resources will be provisioned. required
namestringThe name of the cloud function to create required
timeoutstringFunction execution timeout (in seconds)60
environment_variablesmapA map of key/value environment variable pairs to assign to the function{}
roleslistA list of roles to apply to the service account[]
descriptionstringThe description of the cloud function"Created by Terraform"
available_memory_mbstringAvailable memory (in MB) to the function.128
trigger_httpstringIf function is triggered by HTTP, this boolean is settrue
Outputs (1)
service_account_email
Resources (3)
google_cloudfunctions_functiongoogle_project_iam_membergoogle_service_account
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.0
Cloud GOOGLE
★ Stars6
Forks3
Total downloads5.6k
Inputs13
Outputs1
Resources3
Examples1
LicenseApache-2.0
Namespacefuzzylabs
Updated