Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to set cloudflare_zone_setting values other than on/off with v5 #4779

Closed
3 tasks done
devin-purple opened this issue Dec 16, 2024 · 2 comments
Closed
3 tasks done
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.

Comments

@devin-purple
Copy link

devin-purple commented Dec 16, 2024

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

Terraform v1.9.8
on linux_amd64

  • provider registry.terraform.io/cloudflare/cloudflare v5.0.0-alpha1

Affected resource(s)

cloudflare_zone_setting

Terraform configuration files

resource "cloudflare_zone_setting" "strict_ssl" {
  id         = "ssl"
  setting_id = "strict"
  value      = "on"
  zone_id    = data.cloudflare_zone.purple.id
}

resource "cloudflare_zone_setting" "strict_ssl" {
  id         = "ssl"
  setting_id = "ssl"
  value      = "strict"
  zone_id    = data.cloudflare_zone.purple.id
}

Link to debug output

https://gist.github.com/devin-purple/1d00392bf496e953085badf4b3e20706

Panic output

No response

Expected output

Setting applies

Actual output

Various errors

"Attribute value value must be one of: ["on" "off"], got: "strict""

Or browser_cache_ttl:

Attribute value value must be one of: ["on" "off"], got: "300"

Steps to reproduce

Apply code

Additional factoids

I am trying to turn on SSL strict mode in a zone, Flexible is the default.

References

https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zone_setting seems to indicate that "value" is a string but can only be on/off. And "enabled" is a boolean so it seems impossible to set a value like "300" or "strict".

@devin-purple devin-purple added 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. labels Dec 16, 2024
@devin-purple
Copy link
Author

At this time, please do not report bugs relating to broken resources as they are
likely already being worked on to release in upcoming versions.

Closing

@github-actions github-actions bot added the triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log. label Dec 16, 2024
Copy link
Contributor

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant