-
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 set Autoscaling Algorithm to THROUGHPUT_BASED
#17570
Comments
The issue was confirmed after the replication with the error message |
Good day @Demacr. Thank you for raising this issue. I noticed that
was placed within the We have an auto-generated example of the Please let us know if you need further help. |
Hi @damondouglas ,
I've tried this right now with 5.20 module version. |
Good day, @Demacr. The terraform resource follows projects.jobs#Job.AutoscalingAlgorithm. I believe this is the behavior of terraform resources for the Google Provider. Generally, when I run into issues I look at the API reference to troubleshoot. The other clue that this may have been an incorrect input is from the 400 code of the API error that tells me that |
@Demacr is there documentation somewhere that indicated that the API should support this value? Or are you wanting to request that the API should add this as an additional algorithm? |
@Demacr when you say "created manually", do you mean that you were manually able to make an API call that accepted |
@melinath I mean originally created the flex dataflow by |
For example real command with anonymized values:
|
@Demacr gcloud should send that to the API, so if it works in gcloud it should be possible to do in Terraform as well. If you add |
|
Thanks for the logs, that's super helpful! This looks like a valid issue to me - you're able to use Specifically, gcloud sets This behavior was introduced in 5.0.0 via GoogleCloudPlatform/magic-modules#9031; it looks like we believed at the time that the environment and parameters fields should contain the same values? In the long term the "fix" would probably be to introduce a separate |
Community Note
Terraform Version
Affected Resource(s)
google_dataflow_flex_template_job
Terraform Configuration
Debug Output
https://gist.github.com/Demacr/a6b30bb83f0105ba0764571d75b44ace
Expected Behavior
Created new job with autoscaling algorithm equal to
THROUGHPUT_BASED
Actual Behavior
It throws error of incompatible error:
Steps to reproduce
terraform apply
Important Factoids
I found that it accepts only values which noticed by the link: https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#Job.AutoscalingAlgorithm
I used
AUTOSCALING_ALGORITHM_BASIC
value and then it accepts the value and creates job, but it doesn't appearautoscalingAlgorithm
record in the job parameters.References
No response
b/329834219
The text was updated successfully, but these errors were encountered: