Skip to content

Commit 5396f5e

Browse files
Update description for scaling fields of cloud_run_v2_service (#12619) (#20793)
[upstream:6cde90491b1bc60513f71527fd0446c6c1a77c2e] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 0b67483 commit 5396f5e

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.changelog/12619.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/services/cloudrunv2/resource_cloud_run_v2_service.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,14 +493,15 @@ If not specified or 0, defaults to 80 when requested CPU >= 1 and defaults to 1
493493
Elem: &schema.Resource{
494494
Schema: map[string]*schema.Schema{
495495
"max_instance_count": {
496-
Type: schema.TypeInt,
497-
Optional: true,
498-
Description: `Maximum number of serving instances that this resource should have.`,
496+
Type: schema.TypeInt,
497+
Optional: true,
498+
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
499+
a default value based on the project's available container instances quota in the region and specified instance size.`,
499500
},
500501
"min_instance_count": {
501502
Type: schema.TypeInt,
502503
Optional: true,
503-
Description: `Minimum number of serving instances that this resource should have.`,
504+
Description: `Minimum number of serving instances that this resource should have. Defaults to 0. Must not be greater than maximum instance count.`,
504505
},
505506
},
506507
},

website/docs/r/cloud_run_v2_service.html.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,11 +692,12 @@ The following arguments are supported:
692692

693693
* `min_instance_count` -
694694
(Optional)
695-
Minimum number of serving instances that this resource should have.
695+
Minimum number of serving instances that this resource should have. Defaults to 0. Must not be greater than maximum instance count.
696696

697697
* `max_instance_count` -
698698
(Optional)
699-
Maximum number of serving instances that this resource should have.
699+
Maximum number of serving instances that this resource should have. Must not be less than minimum instance count. If absent, Cloud Run will calculate
700+
a default value based on the project's available container instances quota in the region and specified instance size.
700701

701702
<a name="nested_vpc_access"></a>The `vpc_access` block supports:
702703

0 commit comments

Comments
 (0)