# oci_stack_monitoring_discovery_job.the_discovery_job will be updated in-place
~ resource "oci_stack_monitoring_discovery_job" "the_discovery_job" {
id = "REDACTED"
+ system_tags = (known after apply)
# (10 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Note that system_tags (noted above that is triggering the change) is an output attribute not input. Regardless, I added
lifecycle {
ignore_changes = [
system_tags
]
}
…and tried again with the same error/result ("doesn't support update").
Debug Output
Panic Output
Expected Behavior
I expected imported oci_stack_monitoring_discovery_job resources to proper tolerate ongoing apply actions without error and ignore/avoid non-updatable attributes when assessing the need for change. Also, I expected lifecycle ignore_changes to properly override any attribute that is detected as requiring change so as to avoid conflicts when applying to a resource that does not support an update.
Actual Behavior
An imported oci_stack_monitoring_discovery_job resource attempts to update system_tags—which is not an input parameter—when applying the configuration. Even with lifecycle ignore_changes including this attribute name, the apply operation still attempts to affect a change on the resource. Consequently I am unable to proceed without manually removing this resource from my state. Argh!
Steps to Reproduce
terraform apply and all that—see above for details
Community Note
Terraform Version and Provider Version
Terraform v1.5.7 on darwin_amd64
Affected Resource(s)
affected_resources = oci_stack_monitoring_discovery_job
Terraform Configuration Files
Here is the output
When I try apply again I see this:
Note that
system_tags
(noted above that is triggering the change) is an output attribute not input. Regardless, I added…and tried again with the same error/result ("doesn't support update").
Debug Output
Panic Output
Expected Behavior
I expected imported oci_stack_monitoring_discovery_job resources to proper tolerate ongoing apply actions without error and ignore/avoid non-updatable attributes when assessing the need for change. Also, I expected lifecycle
ignore_changes
to properly override any attribute that is detected as requiring change so as to avoid conflicts when applying to a resource that does not support an update.Actual Behavior
An imported oci_stack_monitoring_discovery_job resource attempts to update
system_tags
—which is not an input parameter—when applying the configuration. Even with lifecycleignore_changes
including this attribute name, the apply operation still attempts to affect a change on the resource. Consequently I am unable to proceed without manually removing this resource from my state. Argh!Steps to Reproduce
terraform apply
and all that—see above for detailsImportant Factoids
References
system_tags
attribute is not an input and should not be flagged for updates https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/stack_monitoring_discovery_job