-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloudflare_ruleset: Provider produced inconsistent result after apply #2749
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of This issue has been marked with |
Thank you for opening this issue and sorry to hear you're hitting issues. Unfortunately, the reproduction case provided contains HCL dynamic expressions. Examples of these are:
Maintainers don't accept these as reproduction cases since using these constructs and expressions can hold their own logic bugs which are outside of the provider and not able to be diagnosed. For maintainers to triage this issue, we recommend providing a minimal reproduction test case that is only contains the impacted resources and can be easily reproduced in an isolated environment. Without providing this, maintainers are limited in what support they can provide. |
I am using cloudflare provide 4.14.0 I have a very similar sounding issue with a different ruleset entrypoint. In my case rerunning
The code I am running is
|
@cnk your issue is unrelated to this issue. you are missing the definition in your HCL that the API is returning. in future, i'd recommend a dedicated issue unless your error message or reproduction case is identical. |
Same error here:
Planning works as expected, applying the change produces the following error:
Cloudflare provider used is v4.14. Note that the change has been applied, but triggers a "replacement" in every run. |
@atmosx ypur issue is also unrelated here. you'll need to check the provider docs as Ruleset headers must be in alphabetical order. |
Providing the block
for skip rules solves this error for us. |
closing as the original issue hasn't been followed up on and still requires a reproduction case without dynamics. if this is still an issue, please open a new issue following the issue template to have it triaged. |
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
cloudflare_ruleset
Terraform configuration files
Link to debug output
log contains too much sensitive info (could follow up through support?)
Panic output
No response
Expected output
no error
Actual output
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.zone_settings.cloudflare_ruleset.zone_managed_waf, provider "module.zone_settings.provider["registry.terraform.io/cloudflare/cloudflare"]" produced an unexpected new value: .rules[4].logging: block count changed from 0 to
│ 1.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Steps to reproduce
Apply resource.
Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: