added support 2nd generation cloud function (#872)
* added support 2nd generation cloud function * changed function_version to a simple boolean v2 removed memory_2ndGen * will use the var.v2 to add the invoker role * removed the list uisng compact and formated the code * formated the code and added conditional feature * formated the code * added formating * resolved the merge conflict * Update readme * Create local function object * added secret_volumes and secret_environment_variables for CF V2 Co-authored-by: Julio Castillo <jccb@google.com>
This commit is contained in:
@@ -54,7 +54,7 @@ variable "function_config" {
|
||||
type = object({
|
||||
entry_point = string
|
||||
instances = number
|
||||
memory = number
|
||||
memory = number # Memory in MB
|
||||
runtime = string
|
||||
timeout = number
|
||||
})
|
||||
@@ -160,3 +160,9 @@ variable "vpc_connector_config" {
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "v2" {
|
||||
description = "Whether to use Cloud Function version 2nd Gen or 1st Gen."
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user