Open kolban-google opened 10 months ago
If I were to make an additional guess ... the core of the error is that Terraform seems to "require" me to specify a "triggers" block ... however, reading the spec of the API, I am sensing that triggers is optional ... in my environment, I seem to want to ommt triggers completely but Terraform won't allow me to.
If It helps, I am a Google employee and can be reached at LDAP kolban@google.com
It looks like the manual
triggers can only be used with "hybrid" jobs, which I believe are jobs using hybrid_options - your job uses big_query_options. This is an API-side restriction.
Based on the previous comment, it looks like this is just an invalid input case. Do we need to take action here?
I can try to change the validation to refuse manual
triggers with non-hybrid jobs, but I'm not sure how high priority this is (as well as how easy enforcing this in magic-modules is)
Looking over this again, the documentation correctly shows a manual
job that uses hybrid_options
. There also haven't been a bunch of thumbs added so it's probably not in high demand. Client-side validation could help; the other option would be improving the API error message so that it more clearly states the problem & solution (https://google.aip.dev/193)
I am trying to create a DLP Job Trigger of type manual.
I am following the documentation here:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/data_loss_prevention_job_trigger
When I execute Terraform apply, we get a failure as described below.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
b/311726392