Skip to content

Commit 56d3f46

Browse files
fix: Fix comments (terraform-google-modules#574)
* fix example: modify comments for the defaults in instance_template --------- Co-authored-by: Sampath Kumar <[email protected]>
1 parent 0b965f4 commit 56d3f46

File tree

1 file changed

+4
-3
lines changed
  • compute/region_autoscaler_basic

1 file changed

+4
-3
lines changed

compute/region_autoscaler_basic/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ resource "google_compute_instance_template" "foobar" {
4444
network_interface {
4545
network = "default"
4646

47-
# secret default
47+
# default access config, defining external IP configuration
4848
access_config {
4949
network_tier = "PREMIUM"
5050
}
5151
}
5252

53-
# secret default
53+
# To avoid embedding secret keys or user credentials in the instances, Google recommends that you use custom service accounts with the following access scopes.
5454
service_account {
5555
scopes = [
5656
"https://www.googleapis.com/auth/devstorage.read_only",
@@ -66,7 +66,8 @@ resource "google_compute_instance_template" "foobar" {
6666
# [END compute_template_create]
6767

6868
resource "google_compute_target_pool" "foobar" {
69-
name = "my-target-pool"
69+
name = "my-target-pool"
70+
region = "us-central1"
7071
}
7172

7273
resource "google_compute_region_instance_group_manager" "foobar" {

0 commit comments

Comments
 (0)