Skip to content

Cannot apply with cloudflare_bot_management resource. #6305

@callmesangio

Description

@callmesangio

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.13.3
on darwin_amd64
+ provider registry.terraform.io/cloudflare/cloudflare v5.11.0

Affected resource(s)

  • cloudflare_bot_management

Terraform configuration files

provider "cloudflare" {}

locals {
  zone_id = "xxx"
}

resource "cloudflare_bot_management" "robots_txt" {
  zone_id               = local.zone_id
  ai_bots_protection    = "disabled"
  crawler_protection    = "disabled"
  enable_js             = false
  fight_mode            = false
  is_robots_txt_managed = false
}

Link to debug output

https://gist.github.com/callmesangio/388edd057c98666a3e752673581138da

Panic output

No response

Expected output

I would expect the apply to succeed.

Actual output

Terraform exits with an error:

Error: Provider produced inconsistent result after apply

When applying changes to cloudflare_bot_management.robots_txt, provider
"provider[\"registry.terraform.io/cloudflare/cloudflare\"]" produced an
unexpected new value: .suppress_session_score: was cty.False, but now null.

This is a bug in the provider, which should be reported in the provider's
own issue tracker.

Steps to reproduce

Run terraform apply on the configuration described above.

Additional factoids

My subscription is on a Free plan.

References

No response

Metadata

Metadata

Assignees

No one assigned

    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