cloud-function
This commit is contained in:
parent
923ba819d1
commit
e6c8fa2552
|
@ -140,6 +140,7 @@ module "cf-http" {
|
|||
| name | Name used for cloud function and associated resources. | <code title="">string</code> | ✓ | |
|
||||
| project_id | Project id used for all resources. | <code title="">string</code> | ✓ | |
|
||||
| *bucket_config* | Enable and configure auto-created bucket. Set fields to null to use defaults. | <code title="object({ location = string lifecycle_delete_age = number })">object({...})</code> | | <code title="">null</code> |
|
||||
| *description* | Optional description. | <code title="">string</code> | | <code title="">Terraform managed.</code> |
|
||||
| *environment_variables* | Cloud function environment variables. | <code title="map(string)">map(string)</code> | | <code title="">{}</code> |
|
||||
| *function_config* | Cloud function configuration. | <code title="object({ entry_point = string ingress_settings = string instances = number memory = number runtime = string timeout = number })">object({...})</code> | | <code title="{ entry_point = "main" ingress_settings = null instances = 1 memory = 256 runtime = "python37" timeout = 180 }">...</code> |
|
||||
| *iam* | IAM bindings for topic in {ROLE => [MEMBERS]} format. | <code title="map(list(string))">map(list(string))</code> | | <code title="">{}</code> |
|
||||
|
|
|
@ -59,7 +59,7 @@ resource "google_cloudfunctions_function" "function" {
|
|||
project = var.project_id
|
||||
region = var.region
|
||||
name = "${local.prefix}${var.name}"
|
||||
description = "Terraform managed."
|
||||
description = var.description
|
||||
runtime = var.function_config.runtime
|
||||
available_memory_mb = var.function_config.memory
|
||||
max_instances = var.function_config.instances
|
||||
|
|
|
@ -36,6 +36,12 @@ variable "bundle_config" {
|
|||
})
|
||||
}
|
||||
|
||||
variable "description" {
|
||||
description = "Optional description."
|
||||
type = string
|
||||
default = "Terraform managed."
|
||||
}
|
||||
|
||||
variable "environment_variables" {
|
||||
description = "Cloud function environment variables."
|
||||
type = map(string)
|
||||
|
|
Loading…
Reference in New Issue