Skip to content

Commit 552b919

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

File tree

1 file changed

+16
-5
lines changed
  • compute/zonal_mig_standby_policy

1 file changed

+16
-5
lines changed

compute/zonal_mig_standby_policy/main.tf

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919
* --standby-policy-initial-delay=50 \
2020
* --zone=us-central1-f
2121
*/
22+
23+
terraform {
24+
required_providers {
25+
google = {
26+
source = "hashicorp/google"
27+
version = ">= 6.16.0"
28+
}
29+
}
30+
}
31+
2232
# [START compute_zonal_instance_group_manager_standby_policy_parent_tag]
2333
resource "google_compute_instance_template" "default" {
2434
name = "an-instance-template"
@@ -35,11 +45,12 @@ resource "google_compute_instance_template" "default" {
3545

3646
# [START compute_zonal_instance_group_manager_standby_policy_tag]
3747
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"
48+
name = "standby-mig"
49+
base_instance_name = "test"
50+
target_size = 2
51+
target_suspended_size = 1
52+
target_stopped_size = 2
53+
zone = "us-central1-f"
4354

4455
version {
4556
instance_template = google_compute_instance_template.default.id

0 commit comments

Comments
 (0)