Skip to content

Commit 6223a96

Browse files
feat(compute): Remove provider=google-beta tag from mig standby_policy example.
1 parent b03e7ac commit 6223a96

File tree

1 file changed

+20
-6
lines changed
  • compute/zonal_mig_standby_policy

1 file changed

+20
-6
lines changed

compute/zonal_mig_standby_policy/main.tf

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,24 @@
1414
* limitations under the License.
1515
*/
1616
/** Made to resemble
17-
* gcloud beta compute instance-groups managed update standby-mig \
17+
* gcloud compute instance-groups managed update standby-mig \
1818
* --standby-policy-mode=scale-out-pool \
1919
* --standby-policy-initial-delay=50 \
20+
* --target-size=2 \
21+
* --suspended-size=1 \
22+
* --stopped-size=2 \
2023
* --zone=us-central1-f
2124
*/
25+
26+
terraform {
27+
required_providers {
28+
google = {
29+
source = "hashicorp/google"
30+
version = ">= 6.16.0"
31+
}
32+
}
33+
}
34+
2235
# [START compute_zonal_instance_group_manager_standby_policy_parent_tag]
2336
resource "google_compute_instance_template" "default" {
2437
name = "an-instance-template"
@@ -35,11 +48,12 @@ resource "google_compute_instance_template" "default" {
3548

3649
# [START compute_zonal_instance_group_manager_standby_policy_tag]
3750
resource "google_compute_instance_group_manager" "default" {
38-
provider = google-beta
39-
name = "standby-mig"
40-
base_instance_name = "test"
41-
target_size = 3
42-
zone = "us-central1-f"
51+
name = "standby-mig"
52+
base_instance_name = "test"
53+
target_size = 2
54+
target_suspended_size = 1
55+
target_stopped_size = 2
56+
zone = "us-central1-f"
4357

4458
version {
4559
instance_template = google_compute_instance_template.default.id

0 commit comments

Comments
 (0)