Skip to content

Commit ae4d777

Browse files
feat: adds an output for the health check self_links to be consumed by load balancer resources outside this module (#119)
* feat: adds an output for the health check self_links to be consumed by load balancer resources outside this module * chore: docs generation * moved change up to autogen * aligning CI and makefile image for docs generation
1 parent 1d569d8 commit ae4d777

File tree

22 files changed

+206
-189
lines changed

22 files changed

+206
-189
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Make will use bash instead of sh
1919
SHELL := /usr/bin/env bash
2020

21-
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0
21+
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.12.2
2222
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
2323
REGISTRY_URL := gcr.io/cloud-foundation-cicd
2424

autogen/outputs.tf.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ output "instance_group_manager" {
3030
description = "An instance of google_compute_region_instance_group_manager of the instance group."
3131
value = google_compute_region_instance_group_manager.{{ module_name }}
3232
}
33+
34+
output "health_check_self_links" {
35+
description = "All self_links of healthchecks created for the instance group."
36+
value = local.healthchecks
37+
}

build/int.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,4 @@ tags:
246246
- 'integration'
247247
substitutions:
248248
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
249-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.0'
249+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.2'

build/lint.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ tags:
2121
- 'lint'
2222
substitutions:
2323
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
24-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.0'
24+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.2'

examples/compute_instance/simple/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ This is a simple, minimal example of how to use the compute_instance module
66
## Inputs
77

88
| Name | Description | Type | Default | Required |
9-
|------|-------------|:----:|:-----:|:-----:|
10-
| nat\_ip | Public ip address | string | `"null"` | no |
11-
| network\_tier | Network network_tier | string | `"PREMIUM"` | no |
12-
| num\_instances | Number of instances to create | string | n/a | yes |
13-
| project\_id | The GCP project to use for integration tests | string | n/a | yes |
14-
| region | The GCP region to create and test resources in | string | `"us-central1"` | no |
15-
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | object | `"null"` | no |
16-
| subnetwork | The subnetwork selflink to host the compute instances in | string | n/a | yes |
9+
|------|-------------|------|---------|:--------:|
10+
| nat\_ip | Public ip address | `any` | `null` | no |
11+
| network\_tier | Network network\_tier | `string` | `"PREMIUM"` | no |
12+
| num\_instances | Number of instances to create | `any` | n/a | yes |
13+
| project\_id | The GCP project to use for integration tests | `string` | n/a | yes |
14+
| region | The GCP region to create and test resources in | `string` | `"us-central1"` | no |
15+
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | <pre>object({<br> email = string,<br> scopes = set(string)<br> })</pre> | `null` | no |
16+
| subnetwork | The subnetwork selflink to host the compute instances in | `any` | n/a | yes |
1717

1818
## Outputs
1919

examples/instance_template/additional_disks/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ instance templates with additional persistent disks.
77
## Inputs
88

99
| Name | Description | Type | Default | Required |
10-
|------|-------------|:----:|:-----:|:-----:|
11-
| project\_id | The GCP project to use for integration tests | string | n/a | yes |
12-
| region | The GCP region to create and test resources in | string | `"us-central1"` | no |
13-
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | object | `"null"` | no |
14-
| subnetwork | The name of the subnetwork create this instance in. | string | `""` | no |
10+
|------|-------------|------|---------|:--------:|
11+
| project\_id | The GCP project to use for integration tests | `string` | n/a | yes |
12+
| region | The GCP region to create and test resources in | `string` | `"us-central1"` | no |
13+
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | <pre>object({<br> email = string<br> scopes = set(string)<br> })</pre> | `null` | no |
14+
| subnetwork | The name of the subnetwork create this instance in. | `string` | `""` | no |
1515

1616
## Outputs
1717

examples/instance_template/simple/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ This is a simple, minimal example of how to use the instance_template module.
66
## Inputs
77

88
| Name | Description | Type | Default | Required |
9-
|------|-------------|:----:|:-----:|:-----:|
10-
| labels | Labels, provided as a map | map(string) | n/a | yes |
11-
| project\_id | The GCP project to use for integration tests | string | n/a | yes |
12-
| region | The GCP region to create and test resources in | string | `"us-central1"` | no |
13-
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | object | `"null"` | no |
14-
| subnetwork | The name of the subnetwork create this instance in. | string | `""` | no |
15-
| tags | Network tags, provided as a list | list(string) | n/a | yes |
9+
|------|-------------|------|---------|:--------:|
10+
| labels | Labels, provided as a map | `map(string)` | n/a | yes |
11+
| project\_id | The GCP project to use for integration tests | `string` | n/a | yes |
12+
| region | The GCP region to create and test resources in | `string` | `"us-central1"` | no |
13+
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | <pre>object({<br> email = string<br> scopes = set(string)<br> })</pre> | `null` | no |
14+
| subnetwork | The name of the subnetwork create this instance in. | `string` | `""` | no |
15+
| tags | Network tags, provided as a list | `list(string)` | n/a | yes |
1616

1717
## Outputs
1818

examples/mig/autoscaler/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ group with an autoscaler.
77
## Inputs
88

99
| Name | Description | Type | Default | Required |
10-
|------|-------------|:----:|:-----:|:-----:|
11-
| autoscaling\_cpu | Autoscaling, cpu utilization policy block as single element array. https://www.terraform.io/docs/providers/google/r/compute_autoscaler.html#cpu_utilization | list(map(number)) | n/a | yes |
12-
| autoscaling\_enabled | Creates an autoscaler for the managed instance group | string | n/a | yes |
13-
| min\_replicas | The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. | string | n/a | yes |
14-
| project\_id | The GCP project to use for integration tests | string | n/a | yes |
15-
| region | The GCP region to create and test resources in | string | `"us-central1"` | no |
16-
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | object | `"null"` | no |
17-
| subnetwork | The subnetwork to host the compute instances in | string | n/a | yes |
10+
|------|-------------|------|---------|:--------:|
11+
| autoscaling\_cpu | Autoscaling, cpu utilization policy block as single element array. https://www.terraform.io/docs/providers/google/r/compute_autoscaler.html#cpu_utilization | `list(map(number))` | n/a | yes |
12+
| autoscaling\_enabled | Creates an autoscaler for the managed instance group | `any` | n/a | yes |
13+
| min\_replicas | The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. | `any` | n/a | yes |
14+
| project\_id | The GCP project to use for integration tests | `string` | n/a | yes |
15+
| region | The GCP region to create and test resources in | `string` | `"us-central1"` | no |
16+
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | <pre>object({<br> email = string<br> scopes = set(string)<br> })</pre> | `null` | no |
17+
| subnetwork | The subnetwork to host the compute instances in | `any` | n/a | yes |
1818

1919
## Outputs
2020

examples/mig/simple/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ managed instance group.
77
## Inputs
88

99
| Name | Description | Type | Default | Required |
10-
|------|-------------|:----:|:-----:|:-----:|
11-
| project\_id | The GCP project to use for integration tests | string | n/a | yes |
12-
| region | The GCP region to create and test resources in | string | `"us-central1"` | no |
13-
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | object | `"null"` | no |
14-
| subnetwork | The subnetwork to host the compute instances in | string | n/a | yes |
15-
| target\_size | The target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. | string | n/a | yes |
10+
|------|-------------|------|---------|:--------:|
11+
| project\_id | The GCP project to use for integration tests | `string` | n/a | yes |
12+
| region | The GCP region to create and test resources in | `string` | `"us-central1"` | no |
13+
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | <pre>object({<br> email = string<br> scopes = set(string)<br> })</pre> | `null` | no |
14+
| subnetwork | The subnetwork to host the compute instances in | `any` | n/a | yes |
15+
| target\_size | The target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set. | `any` | n/a | yes |
1616

1717
## Outputs
1818

examples/mig_with_percent/simple/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ managed instance group.
77
## Inputs
88

99
| Name | Description | Type | Default | Required |
10-
|------|-------------|:----:|:-----:|:-----:|
11-
| project\_id | The GCP project to use for integration tests | string | n/a | yes |
12-
| region | The GCP region to create and test resources in | string | `"us-central1"` | no |
13-
| service\_account | Service account email address and scopes | object | `"null"` | no |
14-
| subnetwork | The subnetwork to host the compute instances in | string | n/a | yes |
10+
|------|-------------|------|---------|:--------:|
11+
| project\_id | The GCP project to use for integration tests | `string` | n/a | yes |
12+
| region | The GCP region to create and test resources in | `string` | `"us-central1"` | no |
13+
| service\_account | Service account email address and scopes | <pre>object({<br> email = string<br> scopes = set(string)<br> })</pre> | `null` | no |
14+
| subnetwork | The subnetwork to host the compute instances in | `any` | n/a | yes |
1515

1616
## Outputs
1717

0 commit comments

Comments
 (0)