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
TPT-4479: Added support for Configurable VPC IPv4 Prefixes (#2402) (#2406)
* Added datasource for GET vpcs/default_ranges
* Added support for IPv4 in VPC resource/datasource and VPCs datasource
* Fix docs
* Address CoPilot suggestion
* Address PR comments
* Remove LKE fix since it is out of scope
* Fix tests
* More fixes
* More fixes
* Remove custom type from ResourceSchemaIPv4NestedObject range attribute
* Address CoPilot suggestions
Copy file name to clipboardExpand all lines: docs/resources/vpc.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,22 @@ resource "linode_vpc" "test" {
39
39
}
40
40
```
41
41
42
+
Create a VPC with a custom IPv4 range:
43
+
44
+
```terraform
45
+
# NOTE: Custom VPC IPv4 Ranges may not currently be available to all users.
46
+
resource "linode_vpc" "test" {
47
+
label = "test-vpc"
48
+
region = "us-iad"
49
+
50
+
ipv4 = [
51
+
{
52
+
range = "10.0.0.0/8"
53
+
}
54
+
]
55
+
}
56
+
```
57
+
42
58
## Argument Reference
43
59
44
60
The following arguments are supported:
@@ -51,6 +67,8 @@ The following arguments are supported:
51
67
52
68
*[`ipv6`](#ipv6) - (Optional) A list of IPv6 allocations under this VPC.
53
69
70
+
*[`ipv4`](#ipv4) - (Optional) A list of IPv4 ranges under this VPC.
71
+
54
72
## IPv6
55
73
56
74
-> **Limited Availability** IPv6 VPCs may not currently be available to all users.
@@ -63,6 +81,14 @@ Configures a single IPv6 range under this VPC.
63
81
64
82
*`allocated_range` - (Read-Only) The value of range computed by the API. This is necessary when needing to access the range for an implicit allocation.
65
83
84
+
## IPv4
85
+
86
+
-> **Limited Availability** Custom VPC IPv4 Ranges may not currently be available to all users.
87
+
88
+
Configures a single IPv4 range under this VPC. Unlike IPv6, IPv4 ranges can be updated in-place without requiring resource replacement.
89
+
90
+
*`range` - (Required) The IPv4 range in CIDR format to assign to this VPC (e.g. `10.0.0.0/8`).
91
+
66
92
## Attributes Reference
67
93
68
94
In addition to all the arguments above, the following attributes are exported.
0 commit comments