diff --git a/.changelog/4171.txt b/.changelog/4171.txt new file mode 100644 index 0000000000..d1314eaec9 --- /dev/null +++ b/.changelog/4171.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +functions: added 4096 as a valid value for available_memory_mb field of `google_cloudfunction_function` +``` diff --git a/google-beta/resource_cloudfunctions_function.go b/google-beta/resource_cloudfunctions_function.go index b0881faf39..baf0d9523e 100644 --- a/google-beta/resource_cloudfunctions_function.go +++ b/google-beta/resource_cloudfunctions_function.go @@ -21,6 +21,7 @@ var functionAllowedMemory = map[int]bool{ 512: true, 1024: true, 2048: true, + 4096: true, } var allowedIngressSettings = []string{ diff --git a/website/docs/r/cloudfunctions_function.html.markdown b/website/docs/r/cloudfunctions_function.html.markdown index 18f3b85098..99821a492c 100644 --- a/website/docs/r/cloudfunctions_function.html.markdown +++ b/website/docs/r/cloudfunctions_function.html.markdown @@ -113,7 +113,7 @@ Eg. `"nodejs8"`, `"nodejs10"`, `"python37"`, `"go111"`, `"go113"`. * `description` - (Optional) Description of the function. -* `available_memory_mb` - (Optional) Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB. +* `available_memory_mb` - (Optional) Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, 2048MB and 4096MB. * `timeout` - (Optional) Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.