Im trying to deploy some infrastructure via terraform. The first time i run apply it deploys the vm no problem but if i run apply again it wants to run destroy and redeploy the vm even though there has been no changes to the configuration. What i can see from the output this is because of id and network.o.name and im not sure why this is causing an issue
resource "openstack_compute_instance_v2" "test" {
name = "test_server"
image_id = "image_id"
flavor_id = "flavour_id"
key_pair = "test"
security_groups = ["default"]
network {
name = "Default Network"
}
}
id: "16342cd6-7f26-4a77-9c3f-11c626400f4f" => (forces new resource)
network.0.name: "Default network" => "Default Network" (forces new resource)