Open lra opened 5 months ago
I hope I understood the title and description correctly, but
could you clarify (maybe in title?) what the "vote for" means:
should it say in the title something like "proper support" or "change default behavior when source_details changes - to - replace instance"
Thank you!
Thanks, updated the title.
Community Note
Terraform Version and Provider Version
Affected Resource(s)
core_instance
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
When the
source_details.source_id
of the VM is changed, terraform should replace the wholeoci_core_instance
resource.Actual Behavior
Instead, it tries to update the
oci_core_instance
resource and the API fails with this error:Steps to Reproduce
terraform apply
Important Factoids
A workaround is to create a fake resource bound to the
source_id
image data, and to state it in thelifecycle.replace_triggered_by
block of theoci_core_instance
resource:References