Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Oct 31, 2024
1 parent ffaa03c commit 8fa85df
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions autogen/variables.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

variable "project_id" {
type = string
description = "The GCP project ID"
description = "The Google Cloud project ID"
default = null
}

Expand All @@ -35,7 +35,7 @@ variable "mig_name" {
}

variable "region" {
description = "The GCP region where the managed instance group resides."
description = "The Google Cloud region where the managed instance group resides."
type = string
}

Expand Down
2 changes: 1 addition & 1 deletion examples/confidential_computing/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "google_kms_crypto_key_iam_binding" "crypto_key" {
}

module "instance_template" {
source = "terraform-google-modules/vm/google//modules/instance_template"
source = "terraform-google-modules/vm/google//modules/instance_template"
version = "~> 12.0"

region = var.region
Expand Down
2 changes: 1 addition & 1 deletion examples/instance_template/confidential_computing/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

module "instance_template" {
source = "terraform-google-modules/vm/google//modules/instance_template"
source = "terraform-google-modules/vm/google//modules/instance_template"
version = "~> 12.0"

region = var.region
Expand Down
4 changes: 2 additions & 2 deletions modules/mig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ The current version is 2.X. The following guides are available to assist with up
| mig\_timeouts | Times for creation, deleting and updating the MIG resources. Can be helpful when using wait\_for\_instances to allow a longer VM startup time. | <pre>object({<br> create = string<br> update = string<br> delete = string<br> })</pre> | <pre>{<br> "create": "5m",<br> "delete": "15m",<br> "update": "5m"<br>}</pre> | no |
| min\_replicas | The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. | `number` | `2` | no |
| named\_ports | Named name and named port. https://cloud.google.com/load-balancing/docs/backend-service#named_ports | <pre>list(object({<br> name = string<br> port = number<br> }))</pre> | `[]` | no |
| project\_id | The GCP project ID | `string` | `null` | no |
| region | The GCP region where the managed instance group resides. | `string` | n/a | yes |
| project\_id | The Google Cloud project ID | `string` | `null` | no |
| region | The Google Cloud region where the managed instance group resides. | `string` | n/a | yes |
| scaling\_schedules | Autoscaling, scaling schedule block. https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_autoscaler#scaling_schedules | <pre>list(object({<br> disabled = bool<br> duration_sec = number<br> min_required_replicas = number<br> name = string<br> schedule = string<br> time_zone = string<br> }))</pre> | `[]` | no |
| stateful\_disks | Disks created on the instances that will be preserved on instance delete. https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-disks-in-migs | <pre>list(object({<br> device_name = string<br> delete_rule = string<br> }))</pre> | `[]` | no |
| stateful\_ips | Statful IPs created on the instances that will be preserved on instance delete. https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-ip-addresses-in-migs | <pre>list(object({<br> interface_name = string<br> delete_rule = string<br> is_external = bool<br> }))</pre> | `[]` | no |
Expand Down
4 changes: 2 additions & 2 deletions modules/mig/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec:
interfaces:
variables:
- name: project_id
description: The GCP project ID
description: The Google Cloud project ID
varType: string
- name: hostname
description: Hostname prefix for instances
Expand All @@ -92,7 +92,7 @@ spec:
varType: string
defaultValue: ""
- name: region
description: The GCP region where the managed instance group resides.
description: The Google Cloud region where the managed instance group resides.
varType: string
required: true
- name: instance_template
Expand Down
4 changes: 2 additions & 2 deletions modules/mig/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

variable "project_id" {
type = string
description = "The GCP project ID"
description = "The Google Cloud project ID"
default = null
}

Expand All @@ -35,7 +35,7 @@ variable "mig_name" {
}

variable "region" {
description = "The GCP region where the managed instance group resides."
description = "The Google Cloud region where the managed instance group resides."
type = string
}

Expand Down
4 changes: 2 additions & 2 deletions modules/mig_with_percent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ The current version is 2.X. The following guides are available to assist with up
| min\_replicas | The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. | `number` | `2` | no |
| named\_ports | Named name and named port. https://cloud.google.com/load-balancing/docs/backend-service#named_ports | <pre>list(object({<br> name = string<br> port = number<br> }))</pre> | `[]` | no |
| next\_version\_percent | Percentage of instances defined in the second version | `number` | n/a | yes |
| project\_id | The GCP project ID | `string` | `null` | no |
| region | The GCP region where the managed instance group resides. | `string` | n/a | yes |
| project\_id | The Google Cloud project ID | `string` | `null` | no |
| region | The Google Cloud region where the managed instance group resides. | `string` | n/a | yes |
| scaling\_schedules | Autoscaling, scaling schedule block. https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_autoscaler#scaling_schedules | <pre>list(object({<br> disabled = bool<br> duration_sec = number<br> min_required_replicas = number<br> name = string<br> schedule = string<br> time_zone = string<br> }))</pre> | `[]` | no |
| stateful\_disks | Disks created on the instances that will be preserved on instance delete. https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-disks-in-migs | <pre>list(object({<br> device_name = string<br> delete_rule = string<br> }))</pre> | `[]` | no |
| stateful\_ips | Statful IPs created on the instances that will be preserved on instance delete. https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-ip-addresses-in-migs | <pre>list(object({<br> interface_name = string<br> delete_rule = string<br> is_external = bool<br> }))</pre> | `[]` | no |
Expand Down
4 changes: 2 additions & 2 deletions modules/mig_with_percent/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec:
interfaces:
variables:
- name: project_id
description: The GCP project ID
description: The Google Cloud project ID
varType: string
- name: hostname
description: Hostname prefix for instances
Expand All @@ -92,7 +92,7 @@ spec:
varType: string
defaultValue: ""
- name: region
description: The GCP region where the managed instance group resides.
description: The Google Cloud region where the managed instance group resides.
varType: string
required: true
- name: instance_template_initial_version
Expand Down
4 changes: 2 additions & 2 deletions modules/mig_with_percent/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

variable "project_id" {
type = string
description = "The GCP project ID"
description = "The Google Cloud project ID"
default = null
}

Expand All @@ -35,7 +35,7 @@ variable "mig_name" {
}

variable "region" {
description = "The GCP region where the managed instance group resides."
description = "The Google Cloud region where the managed instance group resides."
type = string
}

Expand Down

0 comments on commit 8fa85df

Please sign in to comment.