Can't set default ttl using a variable #3736
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
triage/debug-log-attached
Indicates an issue or PR has a complete Terraform debug log.
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
The text was updated successfully, but these errors were encountered: