-
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
Referenced computed attributes in google_storage_bucket_object
are not updated on the same plan/apply cycle
#19379
Comments
Hi @athak ! For this purpose already exists the versioning in google_storage_bucket. For example if you set it to |
@athak after a second review it seems to me that what you are looking for is for |
@ggtisc yes, that is correct, within the same plan/apply cycle. As it stands now, the changes are reflected in the next cycle. |
Confirmed issue! After doing some changes on the |
This is a Terraform Core issue, Terraform plans greedily assume that output values are not volatile and can be carried forward later into plan when the resource is updated. There are technically ways to trigger values becoming unknown on a plan from within the provider, but they require substantial custom logic to achieve and are not done in practice by providers to my knowledge. Here's the same issue across different resources/features: resource "google_compute_address" "my-address" {
name = "my-test-address"
description = "foo"
+ labels = {
+ foo = "bar"
+ }
}
resource "google_compute_global_address" "gladress" {
name = "my-test-gladress"
lifecycle {
replace_triggered_by = [google_compute_address.my-address.address]
}
}
I looked for an issue upstream but couldn't seem to get the right terms together to find a preexisting issue against Core. |
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
Terraform Version & Provider Version(s)
Terraform v1.8.5
on darwin_arm64
Affected Resource(s)
google_storage_bucket_object
Terraform Configuration
Debug Output
No response
Expected Behavior
When modifying the contents of the
google_storage_bucket_object
, the referenced attributes in other resources should be updated on the same plan/apply.Actual Behavior
The referenced attributes are updated in the next plan/apply.
Steps to reproduce
terraform apply
terraform plan
The referenced attributes in the
terraform_data
resource are not shown as being modified.terraform apply
terraform plan
The referenced attributes in the
terraform_data
resource are now shown as modified and will be updated.Important Factoids
No response
References
No response
b/367722415
The text was updated successfully, but these errors were encountered: