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

resource google_cloud_scheduler_job fails with "Error: Provider produced inconsistent final plan" #19681

Open
gsouf opened this issue Sep 30, 2024 · 0 comments
Labels
bug forward/review In review; remove label to forward service/cloudscheduler

Comments

@gsouf
Copy link

gsouf commented Sep 30, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Terraform Version & Provider Version(s)

Terraform v1.9.6
on linux_amd64

  • provider registry.terraform.io/hashicorp/google v6.4.0

Affected Resource(s)

google_cloud_scheduler_job

Terraform Configuration

resource "google_cloud_scheduler_job" "scheduler_job" {
  name        = "scheduler-job"
  description = "Triggers the Cloud Function scheduler"
  region      = var.region

  schedule  = "*/1 * * * *"
  time_zone = "UTC"

  retry_config {
    retry_count = 1
  }


  http_target {
    http_method = "GET"
    uri         = google_cloudfunctions_function.scheduler_function.https_trigger_url

    oidc_token {
      service_account_email = var.service_account_email
    }
  }

  depends_on = [google_cloudfunctions_function_iam_member.member]
}

Debug Output

No response

Expected Behavior

No response

Actual Behavior

Got error "which should be reported in the provider's own issue tracker" after re-applying terraform:

│ Error: Provider produced inconsistent final plan
│ 
│ When expanding the plan for module.scheduler.google_cloud_scheduler_job.scheduler_job to include new values learned so far during apply, provider "registry.terraform.io/hashicorp/google" produced an
│ invalid new value for .http_target[0].oidc_token[0].audience: was null, but now cty.StringVal("https://us-central1-{*****}").
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Steps to reproduce

  1. terraform apply

Important Factoids

No response

References

No response

@gsouf gsouf added the bug label Sep 30, 2024
@github-actions github-actions bot added forward/review In review; remove label to forward service/cloudscheduler labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug forward/review In review; remove label to forward service/cloudscheduler
Projects
None yet
Development

No branches or pull requests

1 participant