Skip to content

Commit e84f8fb

Browse files
authored
fix: Replace num_instance default value from "1" to 1 (#572)
1 parent 1305126 commit e84f8fb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

modules/compute_instance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ See the [simple](https://github.com/terraform-google-modules/terraform-google-vm
2525
| ipv6\_access\_config | IPv6 access configurations. Currently a max of 1 IPv6 access configuration is supported. If not specified, the instance will have no external IPv6 Internet access. | <pre>list(object({<br> network_tier = string<br> }))</pre> | `[]` | no |
2626
| labels | (Optional) Labels to override those from the template, provided as a map | `map(string)` | `null` | no |
2727
| network | Network to deploy to. Only one of network or subnetwork should be specified. | `string` | `""` | no |
28-
| num\_instances | Number of instances to create. This value is ignored if static\_ips is provided. | `number` | `"1"` | no |
28+
| num\_instances | Number of instances to create. This value is ignored if static\_ips is provided. | `number` | `1` | no |
2929
| project\_id | The ID of the project in which the compute instance will be created. | `string` | n/a | yes |
3030
| region | Region where the instances should be created. | `string` | `null` | no |
3131
| resource\_manager\_tags | (Optional) A tag is a key-value pair that can be attached to a Google Cloud resource. You can use tags to conditionally allow or deny policies based on whether a resource has a specific tag. This value is not returned by the API. In Terraform, this value cannot be updated and changing it will recreate the resource. | `map(string)` | `null` | no |

modules/compute_instance/metadata.display.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Google LLC
1+
# Copyright 2026 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

modules/compute_instance/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ spec:
140140
- name: num_instances
141141
description: Number of instances to create. This value is ignored if static_ips is provided.
142142
varType: number
143-
defaultValue: "1"
143+
defaultValue: 1
144144
- name: instance_template
145145
description: Instance template self_link used to create compute instances
146146
varType: string

modules/compute_instance/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ variable "ipv6_access_config" {
7575
variable "num_instances" {
7676
description = "Number of instances to create. This value is ignored if static_ips is provided."
7777
type = number
78-
default = "1"
78+
default = 1
7979
}
8080

8181
variable "instance_template" {

0 commit comments

Comments
 (0)