ionos-cloud / terraform-provider-ionoscloud

The IonosCloud Terraform provider gives the ability to deploy and configure resources using the IonosCloud APIs.
Mozilla Public License 2.0
34 stars 23 forks source link

ionoscloud_server.virtual_machine always wants to update inline_volume_ids #398

Closed mueller-tobias closed 1 year ago

mueller-tobias commented 1 year ago

Description

We deploy VM on IONOS via Terraform since the last update, i think we've the problem that the provider always tries to update the inline_volume_ids. Even after a terraform apply the attribute will try to update itself in the next run.

Expected behavior

Deploy a Server and don't have any update after the apply when nothing changes on the server configuration in terraform or on ionos.

Environment

Terraform version:

Terraform v1.5.0

Provider version:

+ provider registry.terraform.io/hashicorp/cloudinit v2.3.2
+ provider registry.terraform.io/hashicorp/local v2.4.0
+ provider registry.terraform.io/hashicorp/random v3.5.1
+ provider registry.terraform.io/hashicorp/tls v4.0.4
+ provider registry.terraform.io/ionos-cloud/ionoscloud v6.4.0

OS:

Ubuntu 20.04

Configuration Files

How to Reproduce

Create an Server on an ionos datacenter with an inline volume.

Error and Debug Output

  # module.ionos_vm["service-worker-2"].ionoscloud_server.virtual_machine will be updated in-place
  ~ resource "ionoscloud_server" "virtual_machine" {
        id                = "32fa4274-cb7d-4c0a-b690-f609d970c3bd"
      + inline_volume_ids = (known after apply)
        name              = "service-worker-2"
        # (14 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

Additional Notes

References

server resource

cristiGuranIonos commented 1 year ago

THanks for creating this, will be fixed asap,