Skip to content

Commit

Permalink
Prepared new instance template example for inclusion on C.G.C. (#5463) (
Browse files Browse the repository at this point in the history
#10656)

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Nov 30, 2021
1 parent f4cc68f commit f5c8bb9
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .changelog/5463.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```release-note:none
```
28 changes: 18 additions & 10 deletions google/resource_compute_region_autoscaler_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,34 @@ resource "google_compute_region_autoscaler" "foobar" {
}
resource "google_compute_instance_template" "foobar" {
name = "tf-test-my-instance-template%{random_suffix}"
machine_type = "e2-medium"
can_ip_forward = false
tags = ["foo", "bar"]
name = "tf-test-my-instance-template%{random_suffix}"
machine_type = "e2-standard-4"
disk {
source_image = data.google_compute_image.debian_9.id
source_image = "debian-cloud/debian-9"
disk_size_gb = 250
}
network_interface {
network = "default"
}
metadata = {
foo = "bar"
# secret default
access_config {
network_tier = "PREMIUM"
}
}
# secret default
service_account {
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
scopes = [
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring.write",
"https://www.googleapis.com/auth/pubsub",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/trace.append",
]
}
}
Expand Down
28 changes: 18 additions & 10 deletions website/docs/r/compute_region_autoscaler.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,34 @@ resource "google_compute_region_autoscaler" "foobar" {
}
resource "google_compute_instance_template" "foobar" {
name = "my-instance-template"
machine_type = "e2-medium"
can_ip_forward = false
tags = ["foo", "bar"]
name = "my-instance-template"
machine_type = "e2-standard-4"
disk {
source_image = data.google_compute_image.debian_9.id
source_image = "debian-cloud/debian-9"
disk_size_gb = 250
}
network_interface {
network = "default"
}
metadata = {
foo = "bar"
# secret default
access_config {
network_tier = "PREMIUM"
}
}
# secret default
service_account {
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
scopes = [
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring.write",
"https://www.googleapis.com/auth/pubsub",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/trace.append",
]
}
}
Expand Down

0 comments on commit f5c8bb9

Please sign in to comment.