Skip to content

Commit

Permalink
feat: Added instance_group_manager output (#105)
Browse files Browse the repository at this point in the history
* add instance_group_manager output

needed to create a stateful MIG in conjunction with https://www.terraform.io/docs/providers/google/r/compute_region_per_instance_config.html

* fix: autogen/outputs.tf.tmpl use {{ module_name }} in instance_group_manager output

Co-authored-by: Morgante Pell <[email protected]>
  • Loading branch information
adrian-gierakowski and morgante authored Oct 7, 2020
1 parent 78ad70c commit e8a174a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autogen/outputs.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ output "instance_group" {
description = "Instance-group url of managed instance group"
value = google_compute_region_instance_group_manager.{{ module_name }}.instance_group
}

output "instance_group_manager" {
description = "An instance of google_compute_region_instance_group_manager of the instance group."
value = google_compute_region_instance_group_manager.{{ module_name }}
}
1 change: 1 addition & 0 deletions modules/mig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ The current version is 2.X. The following guides are available to assist with up
| Name | Description |
|------|-------------|
| instance\_group | Instance-group url of managed instance group |
| instance\_group\_manager | An instance of google_compute_region_instance_group_manager of the instance group. |
| self\_link | Self-link of managed instance group |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
5 changes: 5 additions & 0 deletions modules/mig/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ output "instance_group" {
description = "Instance-group url of managed instance group"
value = google_compute_region_instance_group_manager.mig.instance_group
}

output "instance_group_manager" {
description = "An instance of google_compute_region_instance_group_manager of the instance group."
value = google_compute_region_instance_group_manager.mig
}
1 change: 1 addition & 0 deletions modules/mig_with_percent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ The current version is 2.X. The following guides are available to assist with up
| Name | Description |
|------|-------------|
| instance\_group | Instance-group url of managed instance group |
| instance\_group\_manager | An instance of google_compute_region_instance_group_manager of the instance group. |
| self\_link | Self-link of managed instance group |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
5 changes: 5 additions & 0 deletions modules/mig_with_percent/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ output "instance_group" {
description = "Instance-group url of managed instance group"
value = google_compute_region_instance_group_manager.mig_with_percent.instance_group
}

output "instance_group_manager" {
description = "An instance of google_compute_region_instance_group_manager of the instance group."
value = google_compute_region_instance_group_manager.mig_with_percent
}

0 comments on commit e8a174a

Please sign in to comment.