From 5396f5e11b04707d74673bb97eec881bbf37cffd Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 27 Dec 2024 11:09:36 -0800 Subject: [PATCH] Update description for scaling fields of `cloud_run_v2_service` (#12619) (#20793) [upstream:6cde90491b1bc60513f71527fd0446c6c1a77c2e] Signed-off-by: Modular Magician --- .changelog/12619.txt | 3 +++ .../services/cloudrunv2/resource_cloud_run_v2_service.go | 9 +++++---- website/docs/r/cloud_run_v2_service.html.markdown | 5 +++-- 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .changelog/12619.txt diff --git a/.changelog/12619.txt b/.changelog/12619.txt new file mode 100644 index 00000000000..42b910df155 --- /dev/null +++ b/.changelog/12619.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` \ No newline at end of file diff --git a/google/services/cloudrunv2/resource_cloud_run_v2_service.go b/google/services/cloudrunv2/resource_cloud_run_v2_service.go index 24cf9576796..a5addd9aab6 100644 --- a/google/services/cloudrunv2/resource_cloud_run_v2_service.go +++ b/google/services/cloudrunv2/resource_cloud_run_v2_service.go @@ -493,14 +493,15 @@ If not specified or 0, defaults to 80 when requested CPU >= 1 and defaults to 1 Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "max_instance_count": { - Type: schema.TypeInt, - Optional: true, - Description: `Maximum number of serving instances that this resource should have.`, + Type: schema.TypeInt, + Optional: true, + Description: `Maximum number of serving instances that this resource should have. Must not be less than minimum instance count. If absent, Cloud Run will calculate +a default value based on the project's available container instances quota in the region and specified instance size.`, }, "min_instance_count": { Type: schema.TypeInt, Optional: true, - Description: `Minimum number of serving instances that this resource should have.`, + Description: `Minimum number of serving instances that this resource should have. Defaults to 0. Must not be greater than maximum instance count.`, }, }, }, diff --git a/website/docs/r/cloud_run_v2_service.html.markdown b/website/docs/r/cloud_run_v2_service.html.markdown index 95156df1404..a4573454b83 100644 --- a/website/docs/r/cloud_run_v2_service.html.markdown +++ b/website/docs/r/cloud_run_v2_service.html.markdown @@ -692,11 +692,12 @@ The following arguments are supported: * `min_instance_count` - (Optional) - Minimum number of serving instances that this resource should have. + Minimum number of serving instances that this resource should have. Defaults to 0. Must not be greater than maximum instance count. * `max_instance_count` - (Optional) - Maximum number of serving instances that this resource should have. + Maximum number of serving instances that this resource should have. Must not be less than minimum instance count. If absent, Cloud Run will calculate + a default value based on the project's available container instances quota in the region and specified instance size. The `vpc_access` block supports: