You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using default_labels on Google Terraform provider (5.21.0) forces replacement of google_datastream_private_connection
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 {
required_providers {
google = {
source ="hashicorp/google"
version ="~> 5.21.0"
}
}
}
Debug Output
No response
Expected Behavior
The resource should be updated in place and not need to be recreated in order to add labels to it
Actual Behavior
As seen in the plan, the labels, as expected, are to be applied on every resource created via the provider. However, on the resource google_datastream_private_connection it forces a replacement due to the effective_labels attribute
Steps to reproduce
terraform plan
Important Factoids
No response
References
No response
b/331218290
The text was updated successfully, but these errors were encountered:
Confirmed issue after replication! This may be an enhancement because there is no error message but as it seems when the default_labels were added it attempts to destroy the existing resources and replace with new ones instead of only update the existing resources.
Thanks for the quick reply @ggtisc ! Understood rgd enhancement over bug. I do think this is not expected behaviour however. Destroying and recreating the resource would cause quite some issues for other Datastream resources depending on it
As the resource google_datastream_private_connection API doesn't support in-place update, the resource has to be recreated to add default labels on the field effective_labels.
Using default_labels on Google Terraform provider (5.21.0) forces replacement of
google_datastream_private_connection
Community Note
Terraform Version
1.7.4
Affected Resource(s)
google_datastream_private_connection
Terraform Configuration
Debug Output
No response
Expected Behavior
The resource should be updated in place and not need to be recreated in order to add labels to it
Actual Behavior
As seen in the plan, the labels, as expected, are to be applied on every resource created via the provider. However, on the resource
google_datastream_private_connection
it forces a replacement due to theeffective_labels
attributeSteps to reproduce
terraform plan
Important Factoids
No response
References
No response
b/331218290
The text was updated successfully, but these errors were encountered: