Skip to content

cloudflare_logpush_job plan always suggests changes #5578

@joshuamsager

Description

@joshuamsager

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.10.3
cloudflare/cloudflare v5.3.0

Affected resource(s)

  • cloudflare_logpush_job

Terraform configuration files

resource "cloudflare_logpush_job" "kitchensink" {
  name             = "HTTP-requests-kitchensink"
  zone_id          = var.zone_id
  kind             = var.kind
  dataset          = "http_requests"
  destination_conf = "https://${var.destination}?header_Authorization=Basic%20${var.auth_token}"

  # Used only for "Core" logging (kind is null)
  max_upload_interval_seconds = 30
  max_upload_records          = 1000

  output_options = {
    field_names      = local.fields
    timestamp_format = "unixnano"
    sample_rate      = var.sample
    output_type      = "ndjson"
    record_prefix    = "{"
    record_suffix    = "}\n"
    field_delimiter  = ","
  }

  enabled = var.enabled
}

Link to debug output

Shared in Cloudflare Support ticket

Panic output

No response

Expected output

Plan after apply should not propose changes

Actual output

module.observe_apps.cloudflare_logpush_job.kitchensink will be updated in-place

~ resource "cloudflare_logpush_job" "kitchensink" {
+ error_message = (known after apply)
id = 677037
- kind = "" -> null
~ last_complete = "2025-04-15T14:03:29Z" -> (known after apply)
+ last_error = (known after apply)
name = "HTTP-requests-kitchensink"
~ output_options = {
+ cve_2021_44228 = false
# (7 unchanged attributes hidden)
}
# (7 unchanged attributes hidden)
}

Steps to reproduce

  1. Provision a logpush job without a kind attribute
  2. Configure output_options
  3. Apply configuration
  4. terraform plan

Additional factoids

No response

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