Skip to content

Commit e88872b

Browse files
removing required_with tag from min/max_instances fields in vpcaccess connector (#13989) (#22837)
[upstream:cbd2fcf4637e768e66aa75b35bc6d46eb488fccb] Signed-off-by: Modular Magician <[email protected]>
1 parent 5c38ec2 commit e88872b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.changelog/13989.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
vpcaccess: fixed an issue where Terraform config validation conditions could have erroneously invalidated existing `google_vpc_access_connector` resources
3+
```

google/services/vpcaccess/resource_vpc_access_connector.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ func ResourceVPCAccessConnector() *schema.Resource {
9393
Computed: true,
9494
Optional: true,
9595
Description: `Maximum value of instances in autoscaling group underlying the connector. Value must be between 3 and 10, inclusive. Must be
96-
higher than the value specified by min_instances.`,
96+
higher than the value specified by min_instances. Required alongside 'min_instances' if not using 'min_throughput'/'max_throughput'.`,
9797
ConflictsWith: []string{"max_throughput"},
98-
RequiredWith: []string{"min_instances"},
9998
},
10099
"max_throughput": {
101100
Type: schema.TypeInt,
@@ -113,9 +112,8 @@ min_throughput. Only one of 'max_throughput' and 'max_instances' can be specifie
113112
Computed: true,
114113
Optional: true,
115114
Description: `Minimum value of instances in autoscaling group underlying the connector. Value must be between 2 and 9, inclusive. Must be
116-
lower than the value specified by max_instances.`,
115+
lower than the value specified by max_instances. Required alongside 'max_instances' if not using 'min_throughput'/'max_throughput'.`,
117116
ConflictsWith: []string{"min_throughput"},
118-
RequiredWith: []string{"max_instances"},
119117
},
120118
"min_throughput": {
121119
Type: schema.TypeInt,

website/docs/r/vpc_access_connector.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ The following arguments are supported:
108108
* `min_instances` -
109109
(Optional)
110110
Minimum value of instances in autoscaling group underlying the connector. Value must be between 2 and 9, inclusive. Must be
111-
lower than the value specified by max_instances.
111+
lower than the value specified by max_instances. Required alongside `max_instances` if not using `min_throughput`/`max_throughput`.
112112

113113
* `max_instances` -
114114
(Optional)
115115
Maximum value of instances in autoscaling group underlying the connector. Value must be between 3 and 10, inclusive. Must be
116-
higher than the value specified by min_instances.
116+
higher than the value specified by min_instances. Required alongside `min_instances` if not using `min_throughput`/`max_throughput`.
117117

118118
* `max_throughput` -
119119
(Optional)

0 commit comments

Comments
 (0)