Skip to content

Commit

Permalink
Support service-level min instances in Cloud Run v2 services. (#10083) (
Browse files Browse the repository at this point in the history
#17501)

[upstream:ffd2cf300a8b5652a4638c772880bb5eeee24b34]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Mar 6, 2024
1 parent 331e4aa commit d81597f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/10083.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
cloudrunv2: added support for `scaling.min_instance_count` in `google_cloud_run_v2_service`.
```
11 changes: 11 additions & 0 deletions website/docs/r/cloud_run_v2_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,11 @@ The following arguments are supported:
One or more custom audiences that you want this service to support. Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests.
For more information, see https://cloud.google.com/run/docs/configuring/custom-audiences.

* `scaling` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
Scaling settings that apply to the whole service
Structure is [documented below](#nested_scaling).

* `traffic` -
(Optional)
Specifies how to distribute traffic over a collection of Revisions belonging to the Service. If traffic is empty or not provided, defaults to 100% traffic to the latest Ready Revision.
Expand All @@ -1082,6 +1087,12 @@ The following arguments are supported:
(Optional)
If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.

<a name="nested_scaling"></a>The `scaling` block supports:

* `min_instance_count` -
(Optional)
Minimum number of instances for the service, to be divided among all revisions receiving traffic.

<a name="nested_traffic"></a>The `traffic` block supports:

* `type` -
Expand Down

0 comments on commit d81597f

Please sign in to comment.