diff --git a/.changelog/4823.txt b/.changelog/4823.txt new file mode 100644 index 00000000000..b36504610c7 --- /dev/null +++ b/.changelog/4823.txt @@ -0,0 +1,3 @@ +```release-note:bug +vpcaccess: fixed permadiff when `max_throughput` is not set on `google_vpc_access_connector` +``` diff --git a/google/resource_vpc_access_connector.go b/google/resource_vpc_access_connector.go index 308b23bf5f6..41b6ee56d8b 100644 --- a/google/resource_vpc_access_connector.go +++ b/google/resource_vpc_access_connector.go @@ -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, diff --git a/google/resource_vpc_access_connector_test.go b/google/resource_vpc_access_connector_test.go new file mode 100644 index 00000000000..71664db3c87 --- /dev/null +++ b/google/resource_vpc_access_connector_test.go @@ -0,0 +1 @@ +package google diff --git a/website/docs/r/vpc_access_connector.html.markdown b/website/docs/r/vpc_access_connector.html.markdown index 37294ba6ca6..fc17047e2fd 100644 --- a/website/docs/r/vpc_access_connector.html.markdown +++ b/website/docs/r/vpc_access_connector.html.markdown @@ -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))