Skip to content

Commit 0cc83a8

Browse files
made some fields of google_cloudfunctions2_function O+C (#8197) (#14975)
Signed-off-by: Modular Magician <[email protected]>
1 parent 6f1b5cf commit 0cc83a8

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.changelog/8197.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
cloudfunction2: fixed permadiffs of some fields of `service_config` in `google_cloudfunctions2_function` resource
3+
```

google/resource_cloudfunction2_function_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ resource "google_cloudfunctions2_function" "terraform-test2" {
123123
}
124124
125125
service_config {
126-
max_instance_count = 1
127-
available_memory = "1536Mi"
128-
timeout_seconds = 30
126+
min_instance_count = 1
129127
}
130128
}
131129
`, context)

google/services/cloudfunctions2/resource_cloudfunctions2_function.go

+3
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ region. If not provided, defaults to the same region as the function.`,
288288
},
289289
"available_memory": {
290290
Type: schema.TypeString,
291+
Computed: true,
291292
Optional: true,
292293
Description: `The amount of memory available for a function.
293294
Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
@@ -308,6 +309,7 @@ supplied the value is interpreted as bytes.`,
308309
},
309310
"max_instance_count": {
310311
Type: schema.TypeInt,
312+
Computed: true,
311313
Optional: true,
312314
Description: `The limit on the maximum number of function instances that may coexist at a
313315
given time.`,
@@ -411,6 +413,7 @@ given time.`,
411413
},
412414
"timeout_seconds": {
413415
Type: schema.TypeInt,
416+
Computed: true,
414417
Optional: true,
415418
Description: `The function execution timeout. Execution is considered failed and
416419
can be terminated if the function is not completed at the end of the

0 commit comments

Comments
 (0)