Skip to content

google_dataflow_flex_template_job doesn't persist all arguments #21322

Closed
@elitongadotti

Description

@elitongadotti

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.10.5

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

Affected Resource(s)

google_dataflow_flex_template_job

Terraform Configuration

resource "google_dataflow_flex_template_job" "my_job" {
  provider = google-beta
  name     = "test-job-123"
  region   = var.region
  project  = var.project

  container_spec_gcs_path = local.template_path

  subnetwork = local.network_path

  ip_configuration = "WORKER_IP_PRIVATE"
  on_delete = "drain"
  enable_streaming_engine = "true"

  additional_experiments = [
    "enable_data_sampling",
    "use_runner_v2"
  ]
  max_workers = 3

  parameters = {
    input_subscription = "projects/${var.project}/subscriptions/test-123123"
  }
}

Debug Output

No response

Expected Behavior

No changes. Your infrastructure matches the configuration. is expected when nothing is changed in the resource at all.

Actual Behavior

Arguments like max_workers, machine_type and sdk_container_image (see the docs here) are not considered when plan runs for a second time. The plan command always ignores those arguments and so the resource is always planned to be changed over and over again.

Image

Steps to reproduce

  1. terraform plan setting those arguments
  2. terraform plan for a second/third/whatever time, with the same configuration. No changes at all.

Important Factoids

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions