Open liran19 opened 6 months ago
Voting for Prioritization
Volunteering to Work on This Issue
the error you've listed here is not the problem here; it is only a symptom.
Stack trace from the terraform-provider-cloudflare_v4.32.0 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
is the issue. as this is reproduction includes dynamics (and likely includes its own logic bugs), i'm sorry but we can't debug it. if you can reproduce the problem without using them, i'm happy to triage.
Observing similar issue in the latest version of the provider (4.36.0). Works fine in 4.34.0.
Stack trace from the terraform-provider-cloudflare_v4.36.0 plugin:
panic: interface conversion: interface {} is nil, not []interface {}
goroutine 32 [running]:
github.com/cloudflare/terraform-provider-cloudflare/internal/sdkv2provider.resourceCloudflareZoneSettingsOverrideStateUpgradeV1.func1(...)
github.com/cloudflare/terraform-provider-cloudflare/internal/sdkv2provider/resource_cloudflare_zone_settings_override_migrate.go:46
Confirmation
Terraform and Cloudflare provider version
Terraform v1.3.10 provider registry.terraform.io/cloudflare/cloudflare v4.32.0 (tried with 4.33.0 - the latest - as well)
Affected resource(s)
cloudflare_page_rule
Terraform configuration files
Link to debug output
https://gist.github.com/liran19/4d1248a8870cd27cb2a2b50ccc9b1bf2
Panic output
Expected output
Modification of the existing page rules
Actual output
│ Error: Plugin did not respond │ │ The plugin encountered an error, and failed to respond to the │ plugin6.(*GRPCProvider).ApplyResourceChange call. The plugin logs may │ contain more details. ╵
Steps to reproduce
Additional factoids
There are some mandatory fields in the page rules resource, and that's why, during the plan, they are being added with default values, and I don't get the " Your infrastructure matches the configuration."
References
No response