NetApp / terraform-provider-netapp-cloudmanager

Terraform provider to create NetAPP OCCM instances, CVO resources, volumes, snapshots, ... in Azure, AWS, GCP.
Mozilla Public License 2.0
17 stars 27 forks source link

Changing route_table_ids parameter in netapp-cloudmanager_cvo_aws shouldn't force resource recreation #77

Closed alikulov closed 2 years ago

alikulov commented 3 years ago

terraform 1.0 netapp/netapp-cloudmanager v21.9.4

Editing list of route tables in route_table_ids parameter for netapp-cloudmanager_cvo_aws resource forces recreation of the CVO.

  # netapp-cloudmanager_cvo_aws.netapp-cvo-test must be replaced
-/+ resource "netapp-cloudmanager_cvo_aws" "netapp-cvo-test" {
      ~ id                            = "VsaWorkingEnvironment-6IjbneoS" -> (known after apply)
        name                          = "test"
      ~ route_table_ids               = [ # forces replacement
            # (5 unchanged elements hidden)
            "rtb-08b706c9cfa12fab9",
          + "rtb-007916e33e0b7a3bc",
        ]
        # (31 unchanged attributes hidden)

        # (5 unchanged blocks hidden)
    }

Plan: 1 to add, 0 to change, 1 to destroy

Such change shouldn't force recreation of netapp-cloudmanager_cvo_aws because it's possible to edit the list of route tables in Cloud Manager Web UI without disruption.