-
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
Cannot read the content
attribute of the google_storage_bucket_object_content
data source
#15717
Cannot read the content
attribute of the google_storage_bucket_object_content
data source
#15717
Comments
@wafrelka noticed below statement. Curious why you want to add
Mind sharing your debug logs for both working and not working applies? |
I added Actually I encountered this problem while writing terraform config where a debug log: https://gist.github.com/wafrelka/8a192df15855911533940f2a384bc730 |
still reproducible on v4.83.0 |
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_storage_bucket_object_content
Terraform Configuration Files
Debug Output
Expected Behavior
terraform apply
succeeds.Actual Behavior
terraform apply
failed with the following error.Removing the
depends_on
attribute resolves the error.Steps to Reproduce
terraform apply
Important Factoids
References
similar reports
content
of the file even though it shows up in state and output #14666root causes
The document says
content
is a computed attribute, but the implementation appears to disagree.I suspect this is the root cause of this problem.
(The document also says it is "Content-Language of the object content", but this also appears to be wrong.)
terraform-provider-google/google/services/storage/data_source_storage_bucket_object_content.go
Line 23 in 0b063b1
terraform-provider-google/google/tpgresource/datasource_helpers.go
Lines 73 to 75 in 0b063b1
terraform-provider-google/google/tpgresource/datasource_helpers.go
Lines 61 to 67 in 0b063b1
The text was updated successfully, but these errors were encountered: