Hello,
I’d like to obtain custom_attributes of a vmware virtual machine from terraform import command.
Is there a way to achieve this ?
At this moment i only obtain an empty field like this in my .tfstate file.
"custom_attributes": {},
So these fields might be erased when performing changes on existing virtual machine if not handled on .tf file.
Is there a solution with terraform ?
Thanks for your help 
Up on this case.
As a Workaround i had to do these steps to obtain custom attributes values after my terraform import
terraform plan -out tfplan
terraform show -json tfplan > plan.json
then edit custom_attributes in my .tfplan file and then doing again a
terraform plan -out tfplan
to prepare my next apply.
–
It is weird that terraform-import command doesn’t fill custom_attributes in its .tfstate file field but exporting the plan can give you theses values in the .json file.
Any help, advices appreciated 