-
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
unique_writer_identity permadiff in google_logging_project_sink when destination is a Cloud Logging bucket in the same project #15266
Comments
The The |
I am not sure why happened. I haven't succeeded to reproduce this error yet. |
I was able to replicate that force replacement behavior with Google provider 4.58.0. |
I am not sure if this is related to this issue or it should be filed as separate one, but when I create two logging sinks with |
Cloud logging (along with other GCP services) changed the behavior of configuring service accounts. |
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
Terraform v1.5.1
on linux_amd64
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Terraform shouldn't attempt to set an unique_writer_identity to 'true' when a google_logging_project_sink when destination is a Cloud Logging bucket in the same project. When the destination is in the same project, a default "serviceAccount:cloud-logs@system.gserviceaccount.com" should be used. When creating a sink via a GCP console, it is not possible to enable unique_writer_identity
Compared to sink that actually requires unique_writer_identity:
Actual Behavior
Terraform succesfully creates a working sink. However, on 2nd and subsequent runs it attempts to change "unique_writer_identity = true -> false # forces replacement" which fails and results in permadiff.
Steps to Reproduce
terraform apply
to create a bucket and a sinkImportant Factoids
References
The text was updated successfully, but these errors were encountered: