Skip to content

Commit

Permalink
fixed default for max_throughput (hashicorp#4823)
Browse files Browse the repository at this point in the history
* fixed default for max_throughput

* updated a test

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician committed Jun 2, 2021
1 parent 4f29cb4 commit 09d5687
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/4823.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
vpcaccess: fixed permadiff when `max_throughput` is not set on `google_vpc_access_connector`
```
4 changes: 2 additions & 2 deletions google/resource_vpc_access_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ func resourceVPCAccessConnector() *schema.Resource {
Optional: true,
ForceNew: true,
ValidateFunc: validation.IntBetween(200, 1000),
Description: `Maximum throughput of the connector in Mbps, must be greater than 'min_throughput'. Default is 1000.`,
Default: 1000,
Description: `Maximum throughput of the connector in Mbps, must be greater than 'min_throughput'. Default is 300.`,
Default: 300,
},
"min_throughput": {
Type: schema.TypeInt,
Expand Down
1 change: 1 addition & 0 deletions google/resource_vpc_access_connector_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package google
2 changes: 1 addition & 1 deletion website/docs/r/vpc_access_connector.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ The following arguments are supported:

* `max_throughput` -
(Optional)
Maximum throughput of the connector in Mbps, must be greater than `min_throughput`. Default is 1000.
Maximum throughput of the connector in Mbps, must be greater than `min_throughput`. Default is 300.

* `subnet` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
Expand Down

0 comments on commit 09d5687

Please sign in to comment.