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
transfer_network = "192.168.1.0/24" # transfer_network field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
46
+
network_ranges = [
47
+
{
48
+
prefix = "192.168.0.0/25" # network_ranges field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
49
+
}
50
+
]
51
+
default_nameservers = ["8.8.8.8"] # default_nameservers field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
52
+
default_prefix_length = 25 # default_prefix_length field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
53
+
max_prefix_length = 29 # max_prefix_length field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
54
+
min_prefix_length = 24 # min_prefix_length field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
55
+
}
56
+
```
57
+
The previous configuration has some deprecated fields.
58
+
59
+
**Configuration for > v0.78.1**
60
+
61
+
To migrate from a previous state, you need to modify your configuration like this:
# Add this import for "stackit_network_area_region" to migrate from the previous configuration
90
+
import {
91
+
to = stackit_network_area_region.example
92
+
id = "${stackit_network_area.example.id},eu01"
93
+
}
94
+
```
95
+
96
+
After modifying the configuration, run `$ terraform plan` to check what terraform will do.
97
+
The changes should trigger an update in-place for the existing "stackit_network_area" where the deprecated fields will be removed and the resource "stackit_network_area_region" should be imported.
98
+
It shouldn't trigger any recreation. If terraform wants to recreate any of the resources, verify that you are using the provider version > v0.78.1 and have everything defined correctly.
99
+
100
+
When everything looks good, run `$ terraform apply` to apply these changes.
101
+
When the run is completed, you can remove the import-block. Run `$ terraform plan` to verify that the infrastructure matches the configuration.
// Deprecated: Will be removed in May 2026. Only introduced to make the IaaS v1 -> v2 API migration non-breaking in the Terraform provider. LegacyMode checks if any of the deprecated fields are set which now relate to the network area region API resource.
transfer_network = "192.168.1.0/24" # transfer_network field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
32
+
network_ranges = [
33
+
{
34
+
prefix = "192.168.0.0/25" # network_ranges field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
35
+
}
36
+
]
37
+
default_nameservers = ["8.8.8.8"] # default_nameservers field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
38
+
default_prefix_length = 25 # default_prefix_length field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
39
+
max_prefix_length = 29 # max_prefix_length field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
40
+
min_prefix_length = 24 # min_prefix_length field got deprecated for provider versions > v0.74.0, use the new "stackit_network_area_region" resource instead
41
+
}
42
+
```
43
+
The previous configuration has some deprecated fields.
44
+
45
+
**Configuration for > v0.78.1**
46
+
47
+
To migrate from a previous state, you need to modify your configuration like this:
# Add this import for "stackit_network_area_region" to migrate from the previous configuration
76
+
import {
77
+
to = stackit_network_area_region.example
78
+
id = "${stackit_network_area.example.id},eu01"
79
+
}
80
+
```
81
+
82
+
After modifying the configuration, run `$ terraform plan` to check what terraform will do.
83
+
The changes should trigger an update in-place for the existing "stackit_network_area" where the deprecated fields will be removed and the resource "stackit_network_area_region" should be imported.
84
+
It shouldn't trigger any recreation. If terraform wants to recreate any of the resources, verify that you are using the provider version > v0.78.1and have everything defined correctly.
85
+
86
+
When everything looks good, run `$ terraform apply` to apply these changes.
87
+
When the run is completed, you can remove the import-block. Run `$ terraform plan` to verify that the infrastructure matches the configuration.
0 commit comments