After importing digitalocean_volume
to TF state, initial_filesystem_*
attributes triggers recreation
#984
Labels
digitalocean_volume
to TF state, initial_filesystem_*
attributes triggers recreation
#984
Bug Report
Describe the bug
I had empty state and imported created digitalocean_volume via
terraform import digitalocean_volume.volume <ID>
.My definition of volume is this:
After running Terraform plan, it tries to recreate it, which is something I don't want to do:
var.fs_label
still contains the same value as before (pgsql_prod_data
). When I comment theinitial_filesystem_*
attributes, theterraform plan
reports no changes.Affected Resource(s)
digitalocean_volume
Expected Behavior
Terraform plan should report no changes after import to state on
digitalocean_volume
Actual Behavior
Terraform plan tries to recreated the volume, which is undesirable and causes lost of data in volume
Steps to Reproduce
>initial_filesystem_*
attributes filled in, reflecting the resource made via consoleTerraform Configuration Files
main.tf
variables.tf
Terraform version
Terraform - v1.3.9
digitalocean provider - v2.26.0
Debug Output
Panic Output
Additional context
Important Factoids
References
The text was updated successfully, but these errors were encountered: