-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Modifying google_bigquery_data_transfer_config.params.data_path_template fails #6992
Modifying google_bigquery_data_transfer_config.params.data_path_template fails #6992
Comments
@charleskorn this error comes from API. It seems clear |
@edwardmedia yes, I understand the error message. The reason I filed this as a bug is that normally, Terraform resources know which properties are immutable or not and therefore whether an in-place update can be performed or if the resource needs to be recreated. For example, if I change a resource's project, Terraform knows that change can't be made in place, so it plans to recreate the resource. I'd expect the same behaviour here - the provider should plan to recreate the job when I change this property, not attempt to modify it in place. |
Hey @charleskorn! It makes sense to expect the |
Makes sense, thanks @c2thorn |
On second thought, it may be best to use a customize diff. Putting a note for the future implementer. |
With the minimum period dropping from eight hours to fifteen minutes, the transfer service becomes much more valuable and people will likely bump into this. Are there any workarounds where I can just flag the entire resource as immutable manually? |
The only manual force recreation option that I know of is the taint command. A less desirable workaround would be to simultaneously update a field that is set to force recreate, like |
Has there been any more movement on this issue. I can confirm that this issue also affects changes to the |
I noticed that this documentation was clarified here to state that manually forcing recreation is the best option at the moment. @c2thorn could you clarify how you were thinking of using a customize diff here? If it's straightforward we can have someone work on this ticket in the next batch of work. |
@roaks3 |
b/251556517 |
looks like destination_table_name_template is not immutable, reverting this change & reopening to track |
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. |
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)
google_bigquery_data_transfer_config
Terraform Configuration Files
Expected Behavior
Modifying the
data_path_template
should succeed, either updating the existing job or recreating it if neededActual Behavior
Fails with:
Steps to Reproduce
google_bigquery_data_transfer_config
for transfer from GCS, and setdata_path_template
inparams
terraform apply
data_path_template
terraform apply
The text was updated successfully, but these errors were encountered: