Cloud-Temple / terraform-provider-cloudtemple

Cloud Temple CSP Terraform Provider
https://cloud-temple.com
Mozilla Public License 2.0
8 stars 1 forks source link

Some data are not imported in state when importing a 'cloudtemple_compute_virtual_machine' #137

Closed pbesret closed 7 months ago

pbesret commented 7 months ago

Hello,

Brief description of the incident: When importing a "cloudtemple_compute_virtual_machine" resource into state terraform, some information is not repatriated: datastore_cluster_id datastore_id os_disk os_network_adapter

I've deliberately commented out these parameters in my code, as I've had two prod vms whose resources were stale following the previous ticket (unable to retrieve recommendations) and I can't control the impact of an apply on this.

A terraform refresh didn't retrieve these elements either.

Result : all VM parameters are not imported into the state.

Expected result : all VM parameters are imported into the state.

How to reproduce it (in as much detail as possible): Import a resource of type "cloudtemple_compute_virtual_machine" having been previously deployed by terraform, but whose resource goes into stale due to a failure to start the latter.

Thanks in advance for your help.