Skip to content

Commit 421b7d5

Browse files
Add PSC fields to Filestore instance in beta (#13883) (#22948)
[upstream:d971f7b0ae94ecca883f31345c1a43d1c327407a] Signed-off-by: Modular Magician <[email protected]>
1 parent 0262be6 commit 421b7d5

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

.changelog/13883.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
filestore: added PSC fields to `google_filestore_instance` (beta)
3+
```

google/services/filestore/resource_filestore_instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ instance is connected.`,
187187
Type: schema.TypeString,
188188
Optional: true,
189189
ForceNew: true,
190-
ValidateFunc: verify.ValidateEnum([]string{"DIRECT_PEERING", "PRIVATE_SERVICE_ACCESS", ""}),
190+
ValidateFunc: verify.ValidateEnum([]string{"DIRECT_PEERING", "PRIVATE_SERVICE_ACCESS", "PRIVATE_SERVICE_CONNECT", ""}),
191191
Description: `The network connect mode of the Filestore instance.
192192
If not provided, the connect mode defaults to
193-
DIRECT_PEERING. Default value: "DIRECT_PEERING" Possible values: ["DIRECT_PEERING", "PRIVATE_SERVICE_ACCESS"]`,
193+
DIRECT_PEERING. Default value: "DIRECT_PEERING" Possible values: ["DIRECT_PEERING", "PRIVATE_SERVICE_ACCESS", "PRIVATE_SERVICE_CONNECT"]`,
194194
Default: "DIRECT_PEERING",
195195
},
196196
"reserved_ip_range": {

website/docs/r/filestore_instance.html.markdown

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,11 @@ The following arguments are supported:
241241
Anon_gid may only be set with squashMode of ROOT_SQUASH. An error will be returned
242242
if this field is specified for other squashMode settings.
243243

244+
* `network` -
245+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
246+
The source VPC network for `ip_ranges`.
247+
Required for instances using Private Service Connect, optional otherwise.
248+
244249
<a name="nested_networks"></a>The `networks` block supports:
245250

246251
* `network` -
@@ -269,7 +274,23 @@ The following arguments are supported:
269274
If not provided, the connect mode defaults to
270275
DIRECT_PEERING.
271276
Default value is `DIRECT_PEERING`.
272-
Possible values are: `DIRECT_PEERING`, `PRIVATE_SERVICE_ACCESS`.
277+
Possible values are: `DIRECT_PEERING`, `PRIVATE_SERVICE_ACCESS`, `PRIVATE_SERVICE_CONNECT`.
278+
279+
* `psc_config` -
280+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
281+
Private Service Connect configuration.
282+
Should only be set when connect_mode is PRIVATE_SERVICE_CONNECT.
283+
Structure is [documented below](#nested_networks_networks_psc_config).
284+
285+
286+
<a name="nested_networks_networks_psc_config"></a>The `psc_config` block supports:
287+
288+
* `endpoint_project` -
289+
(Optional)
290+
Consumer service project in which the Private Service Connect endpoint
291+
would be set up. This is optional, and only relevant in case the network
292+
is a shared VPC. If this is not specified, the endpoint would be set up
293+
in the VPC host project.
273294

274295
- - -
275296

0 commit comments

Comments
 (0)