You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(vpc): add subnets attribute in private_network resource (#1930) (#1933)
* refactor(vpc): split private_network tests and update cassettes
* refactor(vpc): remove useless HasChanged() check
The only reason for the update function to be called is if at least one of these attributes has changed.
* docs(vpc): add private_network_id attribute on private_network datasource
* feat(vpc): add subnets attribute in private_network resource and datasource (#1930)
Copy file name to clipboardexpand all lines: docs/data-sources/vpc_private_network.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,14 @@ N/A, the usage will be meaningful in the next releases of VPC.
13
13
14
14
## Argument Reference
15
15
16
-
*`name` - (Required) Exact name of the private network.
16
+
*`name` - (Optional) Name of the private network. One of `name` and `private_network_id` should be specified.
17
+
*`private_network_id` - (Optional) ID of the private network. One of `name` and `private_network_id` should be specified.
17
18
18
19
## Attributes Reference
19
20
20
21
In addition to all above arguments, the following attributes are exported:
21
22
22
23
-`id` - The ID of the private network.
24
+
-`subnets` - The subnets CIDR associated with private network.
23
25
24
26
~> **Important:** Private networks' IDs are [zoned](../guides/regions_and_zones.md#resource-ids), which means they are of the form `{zone}/{id}`, e.g. `fr-par-1/11111111-1111-1111-1111-111111111111`
Copy file name to clipboardexpand all lines: docs/resources/vpc_private_network.md
+1
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ The following arguments are supported:
25
25
-`tags` - (Optional) The tags associated with the private network.
26
26
-`zone` - (Defaults to [provider](../index.md#zone)`zone`) The [zone](../guides/regions_and_zones.md#zones) in which the private network should be created.
27
27
-`project_id` - (Defaults to [provider](../index.md#project_id)`project_id`) The ID of the project the private network is associated with.
28
+
-`subnets` - (Optional) The subnets CIDR associated with private network.
0 commit comments