-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Description
When creating stackit_network resource with the new version of STACKIT Terraform provider (v0.73.0)
receiving and error:
Error: Provider returned invalid result object after apply
Steps to reproduce
1. Creating simple tf file wich should create example stackit_network.
cat nets.tf
resource "stackit_network" "example_with_name" {
project_id = var.project_id
name = "example-with-name"
}
2. Run `terraform apply`
# stackit_network.example_with_name will be created
+ resource "stackit_network" "example_with_name" {
+ id = (known after apply)
+ ipv4_gateway = (known after apply)
+ ipv4_nameservers = (known after apply)
+ ipv4_prefix = (known after apply)
+ ipv4_prefix_length = (known after apply)
+ ipv4_prefixes = (known after apply)
+ ipv6_gateway = (known after apply)
+ ipv6_nameservers = (known after apply)
+ ipv6_prefix = (known after apply)
+ ipv6_prefix_length = (known after apply)
+ ipv6_prefixes = (known after apply)
+ name = "example-with-name"
+ nameservers = (known after apply)
+ network_id = (known after apply)
+ prefixes = (known after apply)
+ project_id = "*********************"
+ public_ip = (known after apply)
+ region = "eu01"
+ routed = (known after apply)
+ routing_table_id = (known after apply)
}
3. If running terraform apply in DEBIUG mode the "null" values for ipv6_prefix and ipv6_prefix_length can be seen:
"ipv6_prefix": null,
"ipv6_prefix_length": null,
Actual behaviour:
2025-12-04T08:42:15.987562Z [debug ] Error: Provider returned invalid result object after apply
After the apply operation, the provider still indicated an unknown value for
stackit_network.example_with_name.ipv6_prefix. All values must be known after
apply, so this is always a bug in the provider and should be reported in the
provider's own repository. Terraform will still save the other known object
values in the state.
Error: Provider returned invalid result object after apply
After the apply operation, the provider still indicated an unknown value for
stackit_network.example_with_name.ipv6_prefix_length. All values must be
known after apply, so this is always a bug in the provider and should be
reported in the provider's own repository. Terraform will still save the
other known object values in the state.
Expected behavior
Expected to create the stackit_network resource.
Environment
- OS: Linux exec-201ce3f740434315985f347007aeea62 6.6.95-cloud-amd64 Format example #1 SMP PREEMPT_DYNAMIC Debian 6.6.95-0gl0~bp1592 (2025-06-30) x86_64 GNU/Linux
- Terraform version (see
terraform --version):Terraform v1.2.7 - Version of the STACKIT Terraform provider:
v0.73.0
Additional information
Same approach works with STACKIT Terraform provider v0.69.0