-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
After an export with
akamai terraform export-property --rules-as-hcl <property_name>
I get this code:
data "akamai_property_rules_builder" "content-hub_rule_redirects" {
rules_v2025_10_16 {
name = "Redirects"
comments = "Configure caching for HTTP redirects. The redirect is cached for the same TTL as a 200 HTTP response when this feature is enabled."
criteria_must_satisfy = "all"
behavior {
cache_redirect {
enabled = "false"
}
}
}
}
Our Github-Copilot says:
"cache_redirect.enabled is set to the string "false". This will fail type-checking if the provider schema expects a boolean (as other behaviors in this module do). Set it as a boolean (false) to avoid Terraform plan/apply errors."
And in fact, the documentation in https://techdocs.akamai.com/terraform/docs/cache-redirect expects a boolean too.
And similar for this exported fragment:
behavior {
http2 {
enabled = ""
}
}
The documentation in https://techdocs.akamai.com/terraform/docs/http2 has no attribute "enabled".
Reactions are currently unavailable