You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I execute terraform apply: The server is successfully installed.
I execute terraform apply a second time: Terraform recognizes a change, although I have not changed anything in the file. Output looks like this:
$ terraform apply
nutanix_virtual_machine.tf-bd787feb-6a5d-d9cd-24aa-9d743c5c5d2e: Refreshing state... (ID: cd7e9b3d-1511-410f-8da4-eb7d200b82ce)
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
~ nutanix_virtual_machine.tf-bd787feb-6a5d-d9cd-24aa-9d743c5c5d2e
disk_list.#: "2" => "1"
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value:
Expected behavior
A terraform apply should not confuse a second terraform apply. It's unclear to me how to deal with this.
Do I have to set something else in the tf-file from the beginning?
Or do I have to adjust something between the first and second terraform apply?
I would like to prevent the second terraform apply, because we would like to generate and execute the terraform file automatically. It would be easiest if all this worked in one terraform apply.
Logs
I'll be happy to deliver more if necessary.
Versions (please complete the following information):
OS: Debian 8.11
Terraform: v0.11.14
Nutanix Cluster (Prism Element / AOS): Version 5.10.6 LTS
Nutanix Prism Central: 5.10.6
Terraform provider version: v1.0.2, installed with provider "nutanix"
Additional context
We want to use Terraform in our automation. Therefore: Terraform files should be written and executed automatically in the future. This information has basically nothing to do with the bug report, but is important to understand why everything should work with only one terraform apply if possible.
The text was updated successfully, but these errors were encountered:
Describe the bug
My terraform file for a new server looks like this.
Expected behavior
A terraform apply should not confuse a second terraform apply. It's unclear to me how to deal with this.
I would like to prevent the second terraform apply, because we would like to generate and execute the terraform file automatically. It would be easiest if all this worked in one terraform apply.
Logs
I'll be happy to deliver more if necessary.
Versions (please complete the following information):
provider "nutanix"
Additional context
We want to use Terraform in our automation. Therefore: Terraform files should be written and executed automatically in the future. This information has basically nothing to do with the bug report, but is important to understand why everything should work with only one terraform apply if possible.
The text was updated successfully, but these errors were encountered: