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

google_cloud_run_v2_job fails with "resource not set in operation response" #20696

Open
afalfallaj opened this issue Dec 14, 2024 · 0 comments
Open
Labels
bug forward/review In review; remove label to forward service/run

Comments

@afalfallaj
Copy link

afalfallaj commented Dec 14, 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.

Description:

When creating a google_cloud_run_v2_job resource using the google-beta provider, Terraform fails with the error:

Error: Error waiting to create Job: `resource` not set in operation response

The issue occurs consistently, even with a minimal configuration. Notably, the job runs successfully, but this error is triggered during terraform apply.

Terraform Version & Provider Version(s)

Terraform v1.9.6
on windows_amd64

  • provider registry.terraform.io/hashicorp/google v6.13.0
  • provider registry.terraform.io/hashicorp/google-beta v6.13.0

Affected Resource(s)

google_cloud_run_v2_job

Terraform Configuration

resource "google_cloud_run_v2_job" "example" {
  provider              = google-beta
  name                  = "example-job"
  location              = "us-central1"
  start_execution_token = "example"

  template {
    template {
      timeout = "600s"
      containers {
        image   = "alpine:latest"
        command = ["sh", "-c"]
        args    = ["echo 'Initialization complete'; exit 0"]
      }
    }
  }
}

Debug Output

https://gist.github.com/afalfallaj/1287f11eed02fd8833568bd230ff269c

Expected Behavior

The job should be created successfully and appear in the Cloud Run console.

Actual Behavior

Terraform fails with the following error:

Error: Error waiting to create Job: `resource` not set in operation response

The logs indicate that the API operation completes (done: true), but the response does not include the expected resource field.


Steps to reproduce

Follow the configuration provided then terraform apply

Important Factoids

No response

References

No response

@afalfallaj afalfallaj added the bug label Dec 14, 2024
@github-actions github-actions bot added forward/review In review; remove label to forward service/run labels Dec 14, 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/run
Projects
None yet
Development

No branches or pull requests

1 participant