Skip to content

Commit

Permalink
add if version == ga back in
Browse files Browse the repository at this point in the history
  • Loading branch information
megan07 committed Nov 10, 2019
1 parent f72b657 commit dae4909
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,14 @@ resource "google_compute_instance_template" "igm-basic" {

resource "google_compute_instance_group_manager" "igm" {
name = "%s"
<% if version.nil? || version == 'ga' -%>
instance_template = google_compute_instance_template.igm-basic.self_link
<% else -%>
version {
instance_template = google_compute_instance_template.igm-basic.self_link
name = "primary"
}
<% end -%>
base_instance_name = "igm"
zone = "us-central1-a"
target_size = 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ resource "google_compute_instance_template" "foo" {
resource "google_compute_region_instance_group_manager" "foo" {
name = "%s"
base_instance_name = "foo"
<% if version.nil? || version == 'ga' -%>
instance_template = google_compute_instance_template.foo.self_link
<% else -%>
version {
instance_template = google_compute_instance_template.foo.self_link
name = "primary"
}
<% end -%>
region = "us-central1"
target_pools = [google_compute_target_pool.foo.self_link]
target_size = 1
Expand Down

0 comments on commit dae4909

Please sign in to comment.