Open sanketwadekar3 opened 3 weeks ago
Voting for Prioritization
Volunteering to Work on This Issue
This started on 4.7 when you guys changed to terraform-plugin-framework
here https://github.com/cloudflare/terraform-provider-cloudflare/pull/2170
Why does it matter? We can not use cloudflare_ruleset
in a module and add the ttf defaults via locals or variables, it only accepts hardcoded values.
Hence, we are pinning the cloudflare provider to 4.6 for the time being
Confirmation
Terraform and Cloudflare provider version
Terraform v1.4.2 on darwin_arm64 Cloudflare provider version 4.40.0
Affected resource(s)
cloudflare_ruleset
Terraform configuration files
Link to debug output
https://gist.github.com/sanketwadekar3/ab03cd9436085de788e75d65c4d6af6c
Panic output
No response
Expected output
The configuration is expected to be valid when we pass the ttl value from a variable.
Actual output
Error: invalid configuration
with cloudflare_ruleset.cache_rule, on main.tf line 37, in resource "cloudflare_ruleset" "cache_example": 37: edge_ttl { using mode 'override_origin' requires setting a default for ttl
Error: invalid configuration
with cloudflare_ruleset.cache_rule, on main.tf line 41, in resource "cloudflare_ruleset" "cache_example": 41: browser_ttl { using mode 'override_origin' requires setting a default for ttl
Steps to reproduce
Additional factoids
No response
References
No response