Skip to content

cloudflare_zone_setting resource schema confusion in 5.5.0: value vs enabled #5653

@json-openai

Description

@json-openai

Confirmation

  • This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
  • I have searched the issue tracker and my issue isn't already found.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

In version 5.5.0 of the Cloudflare Terraform provider the schema for the cloudflare_zone_setting resource includes both a value (Dynamic) attribute and an optional enabled (Boolean) attribute. However the documentation and example usage only reference the enabled attribute (with a description specific to ssl-recommender enrollment), which leads to confusion about which field should be used to toggle zone settings.

Can you clarify which one should I use? If I should use the "value" field, can you clarify if I should keep using "on" and "off" as I did with the v4 provider?
Also, can the documentation be updated to clarify the correct field to use for toggling various zone settings?

Affected resource(s)

cloudflare_zone_setting

Terraform configuration files

resource "cloudflare_zone_setting" "example_zone_setting" {
  zone_id    = "023e105f4ecef8ad9ca31a8372d0c353"
  setting_id = "always_online"
  enabled    = true
}

Link to debug output

I'm just clarifying the schema semantics before trying to do any terraform plan / apply.

Panic output

No response

Expected output

I'm just clarifying the schema semantics before trying to do any terraform plan / apply.

Actual output

I'm just clarifying the schema semantics before trying to do any terraform plan / apply.

Steps to reproduce

I'm just clarifying the schema semantics before trying to do any terraform plan / apply.

Additional factoids

No response

References

No response

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.version/5Categorizes issue or PR as related to version 5 of the provider.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions