-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
cannot create dataflow jobs with the enableStreamingEngine boolean set #8649
Closed
n-oden opened this issue
Mar 10, 2021
· 1 comment
· Fixed by GoogleCloudPlatform/magic-modules#4585, #8670 or hashicorp/terraform-provider-google-beta#3049
Closed
cannot create dataflow jobs with the enableStreamingEngine boolean set #8649
n-oden opened this issue
Mar 10, 2021
· 1 comment
· Fixed by GoogleCloudPlatform/magic-modules#4585, #8670 or hashicorp/terraform-provider-google-beta#3049
Labels
Comments
ghost
added
the
bug
label
Mar 10, 2021
n-oden
added a commit
to odenio/magic-modules
that referenced
this issue
Mar 11, 2021
Merged
5 tasks
c2thorn
pushed a commit
to GoogleCloudPlatform/magic-modules
that referenced
this issue
Mar 11, 2021
* Add enable_streaming_engine argument to google_dataflow_job This should address hashicorp/terraform-provider-google#8649 * address PR feedback
modular-magician
added a commit
to modular-magician/terraform-provider-google
that referenced
this issue
Mar 11, 2021
…p#4585) * Add enable_streaming_engine argument to google_dataflow_job This should address hashicorp#8649 * address PR feedback Signed-off-by: Modular Magician <magic-modules@google.com>
5 tasks
modular-magician
added a commit
to modular-magician/terraform-provider-google-beta
that referenced
this issue
Mar 11, 2021
…p#4585) * Add enable_streaming_engine argument to google_dataflow_job This should address hashicorp/terraform-provider-google#8649 * address PR feedback Signed-off-by: Modular Magician <magic-modules@google.com>
5 tasks
modular-magician
added a commit
that referenced
this issue
Mar 11, 2021
modular-magician
added a commit
to hashicorp/terraform-provider-google-beta
that referenced
this issue
Mar 11, 2021
…3049) * Add enable_streaming_engine argument to google_dataflow_job This should address hashicorp/terraform-provider-google#8649 * address PR feedback Signed-off-by: Modular Magician <magic-modules@google.com>
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
ghost
locked as resolved and limited conversation to collaborators
Apr 11, 2021
github-actions
bot
added
forward/review
In review; remove label to forward
service/dataflow
labels
Jan 14, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/n-oden/d5fd36c7b54fb68a50afce095a9a591b
Expected Behavior
Terraform should launch a job using the google pubsub-to-pubsub template, and the streaming engine feature should be enabled for the job.
It's not so much that terraform is misbehaving per se here -- the API request it makes to dataflow.googleapis.com is correct per the manifest above. The problem is that there is no support for setting an important boolean in the JSON document that gets posted to
/v1b3/projects/myproject/locations/us-east1/templates
. Read on below:Actual Behavior
The job created by terraform does not have streaming engine enabled, and worse yet does not actually process any data.
The issue here appears to be that streaming engine is no longer enableable via the
additional_experiments
list: there is now a first-class configuration option in theenvironment
section of the json document that is posted to google to create a new job.If you create a dataflow job using a google-provided template with the
gcloud
cli tool, the--enable-streaming-engine
flag will cause a key to be added to theenvironment
object in the POST data.There is no way to do this presently with terraform: there is no
enable_streaming_engine
argument for agoogle_dataflow_job
resource, and passingenable_streaming_engine
as a string inside theadditional_experiments
block as previously noted produces a broken job.Steps to Reproduce
terraform apply
To see what should happen, you can use the
gcloud
cli tool:You'll see in the log-http output that the cli makes the following API call:
Important Factoids
To my intense aggravation, the
enableStreamingEngine
key is not documented in google's official docs for theenvironment
object: https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#environment but the gcloud tool is absolutely using it. :(The text was updated successfully, but these errors were encountered: