Skip to content

DXE-6291 Boolean exported as string #101

@rolmo

Description

@rolmo

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".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions